200-710 Exam QuestionsBrowse all questions from this exam

200-710 Exam - Question 24


What is the output of the following code?

Show Answer
Correct Answer: B,D

The given PHP code will produce an error. The variable $first has the value 'second', so $$first is equivalent to $second. However, $second is set to 'fisrt' instead of a valid variable. Therefore, echo $$first attempts to echo the value of a variable named 'fisrt', which has not been defined, leading to a notice about an undefined variable.

Discussion

2 comments
Sign in to comment
[Removed]Option: D
Jun 20, 2020

if the value of the variable $second is correct and not a typo and "fisrt".. the output will be a "Notice : Undefined variable: fisrt"

Andres_Espinosa1Option: D
Apr 30, 2021

lo que genera el error son los signos pesos de mas en el echo ($$$first), si no hay error tipografico la respuesta seria un error