nerdexam
Zend

200-710 · Question #71

What will the following code print out? $str = '✔ one of the following'; echo str_replace('✔', 'Check', $str);

The correct answer is A. Check one of the following. See the full explanation below for the reasoning.

Strings & Patterns

Question

What will the following code print out? $str = '✔ one of the following'; echo str_replace('✔', 'Check', $str);

Options

  • ACheck one of the following
  • Bone of the following
  • C✔ one of the following

How the community answered

(60 responses)
  • A
    85% (51)
  • B
    5% (3)
  • C
    10% (6)

Topics

#str_replace#Unicode#UTF-8#string functions

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice