Learn PHP Tutorial How To Use For Loops Code Samples Guide Steps Teach

RegisterLogin
Learn PHP Tutorial How To Use For Loops Code Samples Guide Steps Teach
Post Description: Learn PHP Tutorial How To Use For Loops Code Samples Guide Steps Teach
Tags: Learn, PHP, Tutorial, How, To, Use, For, Loops, Code, Samples, Guide, Steps, Teach
This Post Was Posted On Feb 29, 2008 By web hosting #1223
Today i will teach you how you can use a typical for loop.

all you need is webhosting with php. if you don't have one yet, visit www.webune.com and sign up for php hosting.

if you are using windows, you can use notepad to create php scripts

so open your notepad and copy and paste the code to see how this example (sample) script works


     Code:
<?php
for($counter =1; $counter <= 10; $counter++)
{
print("counter is $counter<br>n");
}

?>


Output:
     Code:
counter is 1
counter is 2
counter is 3
counter is 4
counter is 5
counter is 6
counter is 7
counter is 8
counter is 9
counter is 10
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Fri Dec 16, 2011 4:46 pm
Powered by: Webune Forums V3