PHP Multiple Choice Questions – While Loops
This set of PHP Multiple Choice Questions & Answers (MCQs) focuses on “While Loops”. 1. What will be the output of the following PHP code? <?phpwhile(){ print "hi";}?> a) infinite loop b) hi c) no output d) error 2. What will be the output of the following PHP code? <?phpdo{ print "hi";}while(0);print "hello";?> a) infinite … Read more