N
Q. What will be the output of the following PHP code?
<?php $user = array("Ats ", "Ajit ", "Rahul ", "Aju "); for ($str=0; $str < count($user); $str++) { if ($user[$str] == "Rahul ") continue; printf ($user[$str]); } ?>
When the mentioned for loop executes, it will start printing all the strings in the array. But when it sees that the if condition is true, it doesn't print the string and just skip the code below it and start with next value. So it will print "Ats Ajit Aju " only.
You must be Logged in to update hint/solution
Q. what is the output of below program?
Q. What will be the output of the following PHP code ?
Q. What is the result of the following PHP code?
Q. A sequence of characters that is processed as a unit is called _____
Q. What will be the output of the following PHP program?
Q. What will be the output of the following PHP code ?
Q. What will be the output of the following PHP code?
Q. Variables always start with a ........ in PHP
Q. What will be the output of the following PHP code ?
Q. __________ PHP functions that accepts any number of parameters.
Discusssion
Login to discuss.