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

Code:
<?php
$name = array("Neha", "Sumi", "Abhay");
for (;count($name) < 5;) 
{
    if (count($name) == 3)
	    print $name;         
}
?>
  • (A) Error
  • (B) Nothing
  • (C) Neha
  • (D) Abhay
πŸ’¬ Discuss
βœ… Correct Answer: (A) Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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