Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 4 Question 88 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 88
Topic #: 4
[All 200-710 Questions]

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 '✂✔✝';

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Edelmira
15 days ago
I'm going with B. The header function clearly specifies ISO-8859-1, so the Unicode characters should display correctly. Easy peasy!
upvoted 0 times
...
Serita
19 days ago
Woah, this question is really testing our understanding of character encoding. I hope the exam has more questions about emojis and cat pictures, that would be much easier!
upvoted 0 times
...
Cheryl
23 days ago
Hold on, isn't the PHP.ini setting of 'default_charset = utf-8' just a default? Wouldn't the 'header()' function take precedence and override that?
upvoted 0 times
...
Alethea
1 months ago
Hmm, I'm not sure. Wouldn't the charset mismatch cause a blank line? The browser might not know how to handle the Unicode characters.
upvoted 0 times
Kristian
1 days ago
A) Three Unicode characters, or unreadable text, depending on the browser
upvoted 0 times
...
Winfred
3 days ago
B) ✂✔✝
upvoted 0 times
...
Eun
8 days ago
A) Three Unicode characters, or unreadable text, depending on the browser
upvoted 0 times
...
...
Lorriane
1 months ago
The output will definitely be the three Unicode characters, regardless of the browser. That's the correct answer, right?
upvoted 0 times
Carlota
7 days ago
B) ✂✔✝
upvoted 0 times
...
Torie
18 days ago
A) Three Unicode characters, or unreadable text, depending on the browser
upvoted 0 times
...
...
Renay
1 months ago
I agree with Rickie, it might not display correctly because of the charset difference.
upvoted 0 times
...
Rickie
2 months ago
I believe it will show unreadable text due to charset mismatch.
upvoted 0 times
...
Whitley
2 months ago
I think it will print three Unicode characters.
upvoted 0 times
...

Save Cancel