Question 6 of 79
Given the following array:
Exam 200-710: Question 6 - Image 1
Which function will remove the value 28 from $a?
    Correct Answer: A

Question 7 of 79
When would you use classes and when would you use namespaces?
    Correct Answer: A

Question 8 of 79
What is the output of this code?
Exam 200-710: Question 8 - Image 1
    Correct Answer: B

    The code uses nowdoc syntax, which means the content inside TEXT will be treated as a plain string, and variables will not be parsed. Thus, the value of `$world` will not be interpolated into the string, and `hello $world` will be output literally.

Question 9 of 79
What is the output of the following code?
Exam 200-710: Question 9 - Image 1
    Correct Answer: B

    In PHP, when an object is cast to an array, only the public properties of the object are included in the resulting array with their respective keys. Private properties are excluded. In the given code, class Bar has a private property $a and a public property $c. When the object of class Bar is cast to an array, only the public property $c will be part of the array with the key 'c'. The array will not include the private property $a. As a result, checking if the key 'a' exists in the array will return false, and checking if the key 'c' exists will return true. Therefore, the output is false-true.

Question 10 of 79
Which of the following items in the $_SERVER superglobal are important for authenticating the client when using HTTP Basic authentication? (Choose two.)
    Correct Answer: D, E