<<< Previous question <<< Question ID#0239.md >>> Next question >>>
Consider the following PHP script:
$charlist = [
'a' => 'one',
'b' => 'two',
];
// *****
What statement will you write at line number 5 instead of ***** to get the output onectwo?
- A)
echo strtr('acb', $charlist);
- B)
echo strstr('acb', $charlist);
- C)
echo strip_tags('acb', $charlist);
- D)
echo strtok('acb', $charlist);
Answer
Answer: A