1
Which one gives error.
View Answer
<?php
echo $i = 5 *(10);
?>
<?php
echo $i = 5 * /* Multiplication */ (10);
?>
<?php
echo $i *= 5;
?>
<?php
$i = 0;
echo $i *= 5;
?>
2
Spot the error variable in PHP
View Answer
<?php
$5 = 5;
?>
<?php
$i;
?>
<?php
$_;
?>
<?php
$@ = '';
?>
3
Spot the error in ECHO
View Answer
<?php
echo 'John\'s birth day';
?>
<?php
echo "John said,\"I'm going home\"";
?>
<?php
echo 'John'."'s".' dbirthday';
?>
<?php
echo "John\'s birth day";
?>