Hall of Famer |
01-24-2011 11:50 AM |
True, I agree with what Kaeliah said above. To loop through an array, use the following syntax below:
PHP Code:
for each($array as $temp){ //your codes here }
This way every element within the array is stored as a temporary variable called $temp. Once a single loop is executed, it will repeat the same thing for the second loop, and the value stored in $temp is changed to the second element in your array. I will post a tutorials on how to use Arrays when I have time, but for now we need tutorials for conditional branches and functions first.
Hall of Famer
|