1. you will need to have a website with PHP. If you don't have PHP on your website, you can visit our friends at Webune.com They have very good service PHP Hosting.
2. a text editor - If you have windows, you can use notepad.
now copy and paste the following code into your text editor and save it as loop.php
Code:
<?php
# Create by Wallpaperama.com
#
$numbers = array(0,1,2,3,4,5);
for($counter =0; $counter <= 5; $counter++)
{
echo 'Array'.$counter.' = '.$numbers[$counter].'<BR>';
}
?>
# Create by Wallpaperama.com
#
$numbers = array(0,1,2,3,4,5);
for($counter =0; $counter <= 5; $counter++)
{
echo 'Array'.$counter.' = '.$numbers[$counter].'<BR>';
}
?>
Now open it with your browser and this is what it will show:
Code:
Array0 = 0
Array1 = 1
Array2 = 2
Array3 = 3
Array4 = 4
Array5 = 5
Array1 = 1
Array2 = 2
Array3 = 3
Array4 = 4
Array5 = 5