?
What will be the output of the following PHP code ?
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";
?>
Answer & Solution
Correct Answer:
Option
A
The . operator appends a string and returns true.
Join the Discussion
Login to post a comment or share your explanation.
Login