Discussion Forum : Php Control Structures (loop)
Question - What will be the output of the following PHP code ?$user = array("Ashley", "Bale", "Shrek", "Blank");for ($x = 0; $x < count($user); $x++) {if ($user[$x] == "Shrek")continue;printf ($user[$x]);}
Options:
A .  AshleyBaleShrek
B .  AshleyBale
C .  AshleyBaleBlank
D .  No output
Answer: Option C

Submit Your Solution Below and Earn Points !
Next Question
Submit Your Solution hear:

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