MCQs > IT & Programming > PHP 5 > When passing an undefined variable to a function by reference, e.g. function test(&$var) { /* ... */ } unset($x); test($x); What is the error message?

PHP 5 MCQs

When passing an undefined variable to a function by reference, e.g. function test(&$var) { /* ... */ } unset($x); test($x); What is the error message?

Answer

Correct Answer: No error message, the variable will be created.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it