PHP For statement is used when you want to loop the code for number of times,
until condition is met.
Syntax :for (initialization; condition; increment)
{
code ...
}
Example :<?php
for ($val=1; $val<=3; $val++)
{
echo "This is the text.<br />";
}
?>
Output of this Php code is :
This is the text.
This is the text.
This is the text.
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2011
(212)
-
▼
November
(18)
- preg_match() or search a string / substring in php
- Que se puede hacer con PHP?
- Use custom slug manipulation for sluggable field i...
- PHP comparison operators
- Downloading as csv/excel file in php using headers
- PHP function stripos is not working in PHP 4
- Avoid using Large String Concatenation
- Installing PNP
- Php For Statement
- PHP Ming
- MySQL DATE TIME Format Conversion
- Force SSL in Apache
- section\tmpl
- select in php with mysql
- Excellent codeigniter tutorials for biginners and ...
- using windows command line smartly
- Auto Resize image With PHP
- The $_POST Function
-
▼
November
(18)