Examveda
Examveda

What will be the output of the following PHP code ?
<?php
function test($int)
{
    if ($int == 1)
        echo "This Works";
    if ($int == 2)
        echo "This Too Seems To Work";
}
test(1);
TEST(2);
?>

A. This Works

B. This Too Seems To Work

C. This WorksThis Too Seems To Work

D. ERROR

Answer: Option C

Solution(By Examveda Team)

Function Is case Insensitive.

This Question Belongs to PHP >> Functions

Join The Discussion

Related Questions on Functions