A nested loop is just one loop within another. The most common use of this is to read from or write into a multi-dimensional array.
Example (in C-style pseudocode):
int[][] array = some...
There are a number of different ways to loop using PHP. They're as follows: For Foreach While Do-while Below are some examples of how each of these types of loop work.
<?php for ($x = 0;...