Predict the output of below PHP programs: Question 1 <?php "Welcome to GeeksforGeeks!" ?> Options: Error Welcome to GeeksforGeeks! Nothing Missing semicolon error… Read More
Tag Archives: PHP-output
In the previous article on ob_start(), we learned how to start the output buffer; now we need to end the output buffering and send the… Read More
Predict the output of below PHP programs: Question 1 <?php $number = array(0, 1, one, two, three, 5); $num = preg_grep("/[0-5]/", $number); print_r($num); ?> Options:… Read More
Predict the output of the following PHP programs: Question 1 <?php $num = "123"; if (!filter_var($num, FILTER_VALIDATE_INT)) echo("Hello"); else echo("Welcome to GeeksforGeeks"); ?> Options: No… Read More
Predict the output of following PHP programs: Question 1 <?php echo str_pad("Welcome", 5)." to GeeksforGeeks."; ?> Options: WelcomeWelcomeWelcomeWelcomeWelcome to GeeksforGeeks. to GeeksforGeeks. WelcomeWelcomeWelcomeWelcomeWelcome to GeeksforGeeks.… Read More