<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webcodez - The database of web programming tutorials &#187; for loop</title>
	<atom:link href="http://www.webcodez.net/tag/for-loop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webcodez.net</link>
	<description>Archive of tutorials on php,mysql,Javascript,html,css and other coding languages as well as code-snippets.</description>
	<lastBuildDate>Sun, 14 Aug 2011 14:01:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>PHP For Loop</title>
		<link>http://www.webcodez.net/php-mysql/php-for-loop/</link>
		<comments>http://www.webcodez.net/php-mysql/php-for-loop/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 20:00:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & MySql]]></category>
		<category><![CDATA[References]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[loops]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[reference]]></category>

		<guid isPermaLink="false">http://www.webcodez.net/?p=624</guid>
		<description><![CDATA[The For loop is used to repeat executing a certain code for a specific amount of times. This could as well be done with the while loop however the for loop is made for this. The while loop may be used for much more complex stuff and for various other purposes. The for loop is [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>For </strong>loop is used to repeat executing a certain code for a specific amount of times. This could as well be done with the while loop however the for loop is made for this. The while loop may be used for much more complex stuff and for various other purposes. The for loop is sorely used for repeating.</p>
<pre name="code" class="php">
for( … declaration …; … condition …; …action… ) {
	… execute code …
}
</pre>
<p>The arguments between brackets are 3: a declaration, a condition and an action. The declaration is usually an integer variable containing a start value, which is usually increased in the action. For example, we could make a for loop which is repeated 10 times:</p>
<pre name="code" class="php">
for($i=1;$i&lt;=10;$i++) {
	echo “&lt;p&gt;”.$i.”&lt;/p&gt;”;
}
</pre>
<p>This will result in displaying the numbers 1 through 10.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webcodez.net/php-mysql/php-for-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Loops</title>
		<link>http://www.webcodez.net/php-mysql/php-loops/</link>
		<comments>http://www.webcodez.net/php-mysql/php-loops/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 18:42:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & MySql]]></category>
		<category><![CDATA[References]]></category>
		<category><![CDATA[do while loop]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[foreach loop]]></category>
		<category><![CDATA[if loop]]></category>
		<category><![CDATA[loops]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[while loop]]></category>

		<guid isPermaLink="false">http://www.webcodez.net/?p=603</guid>
		<description><![CDATA[In PHP loops are used to execute codes under certain conditions and may also be used to repeat the code. There are different loops to do different kind of things: If loop The If loop is used to execute a certain code only when a certain condition is true. While loop The While loop is [...]]]></description>
			<content:encoded><![CDATA[<p>In PHP loops are used to execute codes under certain conditions and may also be used to repeat the code. There are different loops to do different kind of things:</p>
<p><strong><a href="http://www.webcodez.net/php-mysql/php-if-loop" target="_self">If loop</a></strong><br />
The If loop is used to execute a certain code only when a certain condition is true.</p>
<p><strong><a href="http://www.webcodez.net/php-mysql/php-while-do-while-loop" target="_self">While loop</a></strong><br />
The While loop is used to execute a certain code only when a condition is true, and repeat the code as long as the condition is still true.</p>
<p><strong><a href="http://www.webcodez.net/php-mysql/php-while-do-while-loop" target="_self">Do While loop</a></strong><br />
The Do While loop is used to execute a certain code and repeat it as long as a condition is true. The difference with the while loop is that it executes the code at least once, then checks the condition for further repeating.</p>
<p><strong><a href="http://www.webcodez.net/php-mysql/php-for-loop" target="_self">For loop</a></strong><br />
The For loop is used to repeat executing a code a certain amount of times. It does not only consist of a condition, but also a declaration of a variable and an action to perform. For example an integer would be declared and the action would be to increase the integer by 1 each time the loop’s code has been executed. Then a condition could be to execute the code as long as this variable is not greater than 10, to execute the code 10 times.</p>
<p><strong><a href="http://www.webcodez.net/php-mysql/php-foreach-loop" target="_self">Foreach loop</a></strong><br />
This is a somewhat different kind of loop. It may be used to handle each sub-variable of an array apart, seperating the key and belonging value. This makes it easy to loop through all sub-variables ( all combinations of a key and a value ) of an array.</p>
<p>
Each of these loops are explained inside apart references. Click on the title of the loop to get a reference of that specific loop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webcodez.net/php-mysql/php-loops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

