MCQs > IT & Programming > PHP 5 > Considerer this code : $var = 1; function &blah() { global $var; $var++; return $var; } $num = &blah(); $num = &blah(); blah(); What is the value of $num ?

PHP 5 MCQs

Considerer this code : $var = 1; function &blah() { global $var; $var++; return $var; } $num = &blah(); $num = &blah(); blah(); What is the value of $num ?

Answer

Correct Answer: 4

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