Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 615 Bytes

0239.md

File metadata and controls

40 lines (32 loc) · 615 Bytes

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