1.

What will be the output of the following PHP code ?
<?php
function Condition($number)
{
if ($number == 3)
echo "Condition 3rd executed....";
if ($number == 7)
echo "Condition 7th executed....";
if ($number == 8)
echo "Condition 8th executed....";
if ($number == 19)
echo "Condition 19th executed....";
}
$var = stripos("I know the php, And I love to know php!","the");
Condition($var);
?>

A. Condition 3rd executed....
B. Condition 7th executed....
C. Condition 8th executed....
D. Condition 19th executed....
E. None of these
Answer» C. Condition 8th executed....


Discussion

No Comment Found

Related MCQs