In this PHP exercise, you will put all the loops through their paces. Write a script using first a while loop, then a dowhile loop, then two for loops. The script will output the following to the browser:
abc abc abc abc abc abc abc abc abc
xyz xyz xyz xyz xyz xyz xyz xyz xyz
1 2 3 4 5 6 7 8 9
Create the 'abc' row with a while loop, the 'xyz' row with a dowhile loop, and the last two sections with for loops. Remember to include HTML and source code line breaks in your output. No arrays allowed in this solution.
Here's the script:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"