CSE MCQs :: PHP MCQs
- Which of the below statements is equivalent to $add += $add ?
-
What will be the output of the following code?
< ?php function track() { static $count = 0; $count++; echo $count ; } track(); track(); track(); ?>
-
What will be the output of the following PHP code?
< ?php $a = "clue"; $a .= "get"; echo "$a"; ?>
-
What will be the output of the following PHP code?
< ?php $team = "arsenal"; switch ($team) { case "manu": echo "I love man u"; case "arsenal": echo "I love arsenal"; case "manc": echo "I love manc"; } ?>
-
What will be the output of the following PHP code?
< ?php $num = 10; echo 'What is her age? \n She is $num years old'; ?>