Q. What will be the output of the following PHP code ?

Code:
<?php
$emp = array("Ajit", "Ats", "Aju","Rahul");
for ($p = 0; $p < count($emp); $p++) 
{
    if ($emp[$p] == "Rahul") 
	    continue;
    printf ($emp[$p]); 
}
?>
  • (A) AjitAtsAjuRahul
  • (B) AjuAtsRahul
  • (C) Error
  • (D) AjitAtsAju
πŸ’¬ Discuss
βœ… Correct Answer: (D) AjitAtsAju

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
48802
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
87%
Success Rate