1
What will be the output of the following PHP code?
<?php
$x;
if ($x)
print "hi" ;
else
print "how are u";
?> Answer & Solution
Answer: Option
A
Solution:
Uninitialized x is set to 0, thus if condition fails.