Exam 200-710 All QuestionsBrowse all questions from this exam
Question 19

Assuming UTF-8 encoding, what is the value of $count?

    Correct Answer: A

    The given code initializes the variable $data with the string '$1a2' and then uses the strlen() function to compute the length of this string. The strlen() function in PHP returns the number of bytes in a string. The string '$1a2' consists of 4 characters: $, 1, a, and 2. Therefore, the value of $count is 4.

Discussion
ZhukovPeterOption: A

Confirm, answer is A (4). You can play this program in any PHP online playgrounds. Program: $data = "$1a2"; $count = strlen($data); echo $count; outout: 4

bareaOption: A

The correct answer is 4

Andres_Espinosa1Option: A

se realiza el ejercicio y la respuesta correcta es 4

[Removed]Option: A

The correct answer is A: 4