Please run this script, Its output should be two "exactly Seven" but it return One "More than Seven" and one "Exactly Seven!"
I mean the first statement that was written with ? operator does not work properly.
<?
$num = 7;
echo (($num == 7) ? "Exactly Seven!" : ($num > 7) ? "More than Seven!" : "Less than Seven!");
echo "<BR/>";
echo "-------------------------------------------------------------";
echo "<BR/>";
if ($num == 7)
echo "Exactly Seven!";
else if ($num > 7)
echo "More than Seven!";
else
echo "Less than Seven!";
?>
Thanks in advance...