nerdexam
Zend

200-550 · Question #44

Given a php.ini setting of default_charset = utf-8 what will the following code print in the browser? header('Content-Type: text/html; charset=iso-8859-1'); echo '✂✔✝';

The correct answer is A. Three Unicode characters, or unreadable text, depending on the browser. See the full explanation below for the reasoning.

Question

Given a php.ini setting of default_charset = utf-8 what will the following code print in the browser? header('Content-Type: text/html; charset=iso-8859-1'); echo '✂✔✝';

Options

  • AThree Unicode characters, or unreadable text, depending on the browser
  • B✂✔✝
  • CA blank line due to charset mismatch

How the community answered

(49 responses)
  • A
    82% (40)
  • B
    6% (3)
  • C
    12% (6)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice