Home>IT Tests>Questions>What is the output of the following code?
$a = 'hello';
$b = &$a;
$b = 'world';
echo $a;
Question from the PHP5 test
What is the output of the following code? $a = 'hello'; $b = &$a; $b = 'world'; echo $a;
Easy
Why should you avoid declaring a class member variable as « public » ?
Author: Mathieu RobinStatus: PublishedQuestion passed 58 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about PHP