<?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>Criticizer.net &#187; basics</title>
	<atom:link href="http://criticizer.net/tag/basics/feed/" rel="self" type="application/rss+xml" />
	<link>http://criticizer.net</link>
	<description>Criticism &#039;Cause I Like to Criticize</description>
	<lastBuildDate>Wed, 13 Jan 2010 00:06:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Basics: The While Loop</title>
		<link>http://criticizer.net/php-basics-the-while-loop/</link>
		<comments>http://criticizer.net/php-basics-the-while-loop/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 10:51:57 +0000</pubDate>
		<dc:creator>Trey Walter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[basics]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[while]]></category>

		<guid isPermaLink="false">http://criticizer.net/?p=11</guid>
		<description><![CDATA[Basic Syntax

while (statement)
{
  //code to be executed
}


Explanation
The statement in &#8216;while (statement)&#8217; needs to be an expression that can be either false or true.
If the statement is true, the code in the while loop will be executed until the statement happens to be false.
Example

&#60;html&#62;&#60;body&#62;

&#60;?php
$i = 0;

while ($i&#60;5)
{
  echo '$i = '.$i.'&#60;br /&#62;';
  ++$i;
}
?&#62;

&#60;/body&#62;&#60;/html&#62;

Output:

$i [...]]]></description>
			<content:encoded><![CDATA[<h3>Basic Syntax</h3>
<div id="code">
<pre>while (statement)
{
  //code to be executed
}</pre>
</div>
<p><span id="more-11"></span></p>
<h3>Explanation</h3>
<p>The statement in &#8216;while (statement)&#8217; needs to be an expression that can be either false or true.</p>
<p>If the statement is true, the code in the while loop will be executed until the statement happens to be false.</p>
<h3>Example</h3>
<div id="code">
<pre>&lt;html&gt;&lt;body&gt;

&lt;?php
$i = 0;

while ($i&lt;5)
{
  echo '$i = '.$i.'&lt;br /&gt;';
  ++$i;
}
?&gt;

&lt;/body&gt;&lt;/html&gt;</pre>
</div>
<p>Output:</p>
<div id="code">
<pre>$i = 0
$i = 1
$i = 2
$i = 3
$i = 4</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://criticizer.net/php-basics-the-while-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
