Sail E0 Webinar
Question
What will be the output of the following PHP code ?$a = array("hi", "hello", "bye");for (;count($a) < 5;) {if (count($a) == 3)print $a;}
Options:
A .  (“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)…infinitely
B .  ArrayArrayArrayArrayArrayArray….infinitely
C .  hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely
D .  no output
Answer: Option B

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers