What will be the output of the following PHP code ?
<?php
$a = "hello";
if ($a.length)
print $a.length;
else
print "hi";
?>
<?php
$a = "hello";
if ($a.length)
print $a.length;
else
print "hi";
?>A. hellolength
B. 5
C. hi
D. error
Answer: Option A

Join The Discussion