<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.3" -->
<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/"
	>

<channel>
	<title>Mehmet Akif Kardaş</title>
	<link>http://www.akifkardas.com</link>
	<description>Rojnivîskê Kesanî û Teknolojî</description>
	<pubDate>Thu, 08 May 2008 13:46:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>
	<language>en</language>
			<item>
		<title>Using usort in PHP</title>
		<link>http://www.akifkardas.com/2008/05/08/using-usort-in-php.html</link>
		<comments>http://www.akifkardas.com/2008/05/08/using-usort-in-php.html#comments</comments>
		<pubDate>Thu, 08 May 2008 13:46:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.akifkardas.com/2008/05/08/using-usort-in-php.html</guid>
		<description><![CDATA[usort &#8211;  Sort an array by values using a user-defined comparison function

Description
bool usort ( array array, callback  cmp_function)
This function will sort an array by its values using a user-supplied  comparison function. If the array you wish to sort needs to be sorted by some  non-trivial criteria, you should use this function.
The comparison function [...]]]></description>
			<content:encoded><![CDATA[<p class="refnamediv">usort &#8211;  Sort an array by values using a user-defined comparison function</p>
<p class="refsect1"><a title="AEN10632" name="AEN10632"></a></p>
<h2>Description</h2>
<p>bool <strong class="methodname">usort</strong> ( array array, callback  cmp_function)</p>
<p>This function will sort an array by its values using a user-supplied  comparison function. If the array you wish to sort needs to be sorted by some  non-trivial criteria, you should use this function.</p>
<p>The comparison function must return an integer less than, equal to, or  greater than zero if the first argument is considered to be respectively less  than, equal to, or greater than the second.</p>
<p class="note">
<blockquote class="note"><p><strong>Note: </strong>If two members compare as equal, their order in the sorted array  is undefined. Up to PHP 4.0.6 the user defined functions would keep the original  order for those elements, but with the new sort algorithm introduced with 4.1.0  this is no longer the case as there is no solution to do so in an efficient way.</p></blockquote>
<p>Returns <tt class="constant"><strong>TRUE</strong></tt> on success or <tt class="constant"><strong>FALSE</strong></tt> on failure.</p>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a title="AEN10652" name="AEN10652"></a><strong>Example 1. <strong class="function">usort()</strong> example</strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php<br />
</font><font color="#007700">function </font><font color="#0000bb">cmp</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">,  </font><font color="#0000bb">$b</font><font color="#007700">) {<br />
if  (</font><font color="#0000bb">$a </font><font color="#007700">== </font><font color="#0000bb">$b</font><font color="#007700">) {<br />
return </font><font color="#0000bb">0</font><font color="#007700">;<br />
}<br />
return (</font><font color="#0000bb">$a </font><font color="#007700">&lt; </font><font color="#0000bb">$b</font><font color="#007700">) ? -</font><font color="#0000bb">1  </font><font color="#007700">: </font><font color="#0000bb">1</font><font color="#007700">;<br />
}</p>
<p></font><font color="#0000bb">$a </font><font color="#007700">= array(</font><font color="#0000bb">3</font><font color="#007700">,  </font><font color="#0000bb">2</font><font color="#007700">, </font><font color="#0000bb">5</font><font color="#007700">, </font><font color="#0000bb">6</font><font color="#007700">, </font><font color="#0000bb">1</font><font color="#007700">);</p>
<p></font><font color="#0000bb">usort</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">, </font><font color="#dd0000">&#8220;cmp&#8221;</font><font color="#007700">);</p>
<p>while (list(</font><font color="#0000bb">$key</font><font color="#007700">, </font><font color="#0000bb">$value</font><font color="#007700">) = </font><font color="#0000bb">each</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">)) {<br />
echo </font><font color="#dd0000">&#8220;$key: $value</font><font color="#007700">\n</font><font color="#dd0000">&#8220;</font><font color="#007700">;<br />
}<br />
</font><font color="#0000bb">?&gt;</font> </font></code></td>
</tr>
</table>
<p>This example would display:</p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td>
<pre class="screen">0: 1
1: 2
2: 3
3: 5
4: 6</pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p class="note">
<blockquote class="note"><p><strong>Note: </strong>Obviously in this trivial case the <strong class="function">sort()</strong> function would be  more appropriate.</p></blockquote>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a title="AEN10662" name="AEN10662"></a><strong>Example 2. <strong class="function">usort()</strong> example using multi-dimensional  array </strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php<br />
</font><font color="#007700">function </font><font color="#0000bb">cmp</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">,  </font><font color="#0000bb">$b</font><font color="#007700">) {<br />
return  </font><font color="#0000bb">strcmp</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">[</font><font color="#dd0000">&#8220;fruit&#8221;</font><font color="#007700">], </font><font color="#0000bb">$b</font><font color="#007700">[</font><font color="#dd0000">&#8220;fruit&#8221;</font><font color="#007700">]);<br />
}</p>
<p></font><font color="#0000bb">$fruits</font><font color="#007700">[</font><font color="#0000bb">0</font><font color="#007700">][</font><font color="#dd0000">&#8220;fruit&#8221;</font><font color="#007700">] = </font><font color="#dd0000">&#8220;lemons&#8221;</font><font color="#007700">;<br />
</font><font color="#0000bb">$fruits</font><font color="#007700">[</font><font color="#0000bb">1</font><font color="#007700">][</font><font color="#dd0000">&#8220;fruit&#8221;</font><font color="#007700">] = </font><font color="#dd0000">&#8220;apples&#8221;</font><font color="#007700">;<br />
</font><font color="#0000bb">$fruits</font><font color="#007700">[</font><font color="#0000bb">2</font><font color="#007700">][</font><font color="#dd0000">&#8220;fruit&#8221;</font><font color="#007700">] = </font><font color="#dd0000">&#8220;grapes&#8221;</font><font color="#007700">;</p>
<p></font><font color="#0000bb">usort</font><font color="#007700">(</font><font color="#0000bb">$fruits</font><font color="#007700">, </font><font color="#dd0000">&#8220;cmp&#8221;</font><font color="#007700">);</p>
<p>while (list(</font><font color="#0000bb">$key</font><font color="#007700">, </font><font color="#0000bb">$value</font><font color="#007700">) = </font><font color="#0000bb">each</font><font color="#007700">(</font><font color="#0000bb">$fruits</font><font color="#007700">)) {<br />
echo </font><font color="#dd0000">&#8220;</font><font color="#007700">\$</font><font color="#dd0000">fruits</font><font color="#007700">[</font><font color="#dd0000">$key</font><font color="#007700">]</font><font color="#dd0000">: &#8221;  </font><font color="#007700">. </font><font color="#0000bb">$value</font><font color="#007700">[</font><font color="#dd0000">&#8220;fruit&#8221;</font><font color="#007700">] .  </font><font color="#dd0000">&#8220;\n&#8221;</font><font color="#007700">;<br />
}<br />
</font><font color="#0000bb">?&gt;</font> </font></code></td>
</tr>
</table>
<p>When sorting a multi-dimensional array, $a and $b contain references to the  first index of the array.</p>
<p>This example would display:</p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td>
<pre class="screen">$fruits[0]: apples
$fruits[1]: grapes
$fruits[2]: lemons</pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a title="AEN10670" name="AEN10670"></a><strong>Example 3. <strong class="function">usort()</strong> example using a member function  of an object </strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php<br />
</font><font color="#007700">class </font><font color="#0000bb">TestObj </font><font color="#007700">{<br />
var </font><font color="#0000bb">$name</font><font color="#007700">;</p>
<p>function </font><font color="#0000bb">TestObj</font><font color="#007700">(</font><font color="#0000bb">$name</font><font color="#007700">) {<br />
</font><font color="#0000bb">$this</font><font color="#007700">-&gt;</font><font color="#0000bb">name </font><font color="#007700">= </font><font color="#0000bb">$name</font><font color="#007700">;<br />
}</p>
<p></font><font color="#ff8000">/* This is the static comparing function: */<br />
</font><font color="#007700">function </font><font color="#0000bb">cmp_obj</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">,  </font><font color="#0000bb">$b</font><font color="#007700">)  {<br />
</font><font color="#0000bb">$al </font><font color="#007700">=  </font><font color="#0000bb">strtolower</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">-&gt;</font><font color="#0000bb">name</font><font color="#007700">);<br />
</font><font color="#0000bb">$bl </font><font color="#007700">= </font><font color="#0000bb">strtolower</font><font color="#007700">(</font><font color="#0000bb">$b</font><font color="#007700">-&gt;</font><font color="#0000bb">name</font><font color="#007700">);<br />
if (</font><font color="#0000bb">$al </font><font color="#007700">== </font><font color="#0000bb">$bl</font><font color="#007700">) {<br />
return  </font><font color="#0000bb">0</font><font color="#007700">;<br />
}<br />
return (</font><font color="#0000bb">$al  </font><font color="#007700">&gt; </font><font color="#0000bb">$bl</font><font color="#007700">) ? +</font><font color="#0000bb">1 </font><font color="#007700">:  -</font><font color="#0000bb">1</font><font color="#007700">;<br />
}<br />
}</p>
<p></font><font color="#0000bb">$a</font><font color="#007700">[] = new </font><font color="#0000bb">TestObj</font><font color="#007700">(</font><font color="#dd0000">&#8220;c&#8221;</font><font color="#007700">);<br />
</font><font color="#0000bb">$a</font><font color="#007700">[] =  new </font><font color="#0000bb">TestObj</font><font color="#007700">(</font><font color="#dd0000">&#8220;b&#8221;</font><font color="#007700">);<br />
</font><font color="#0000bb">$a</font><font color="#007700">[] = new </font><font color="#0000bb">TestObj</font><font color="#007700">(</font><font color="#dd0000">&#8220;d&#8221;</font><font color="#007700">);</p>
<p></font><font color="#0000bb">usort</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">, array(</font><font color="#dd0000">&#8220;TestObj&#8221;</font><font color="#007700">, </font><font color="#dd0000">&#8220;cmp_obj&#8221;</font><font color="#007700">));</p>
<p>foreach  (</font><font color="#0000bb">$a </font><font color="#007700">as </font><font color="#0000bb">$item</font><font color="#007700">) {<br />
echo </font><font color="#0000bb">$item</font><font color="#007700">-&gt;</font><font color="#0000bb">name </font><font color="#007700">. </font><font color="#dd0000">&#8220;\n&#8221;</font><font color="#007700">;<br />
}<br />
</font><font color="#0000bb">?&gt;</font> </font></code></td>
</tr>
</table>
<p>This example would display:</p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td>
<pre class="screen">b
c
d</pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.akifkardas.com/2008/05/08/using-usort-in-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using uksort in PHP</title>
		<link>http://www.akifkardas.com/2008/05/08/using-uksort-in-php.html</link>
		<comments>http://www.akifkardas.com/2008/05/08/using-uksort-in-php.html#comments</comments>
		<pubDate>Thu, 08 May 2008 13:46:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.akifkardas.com/2008/05/08/using-uksort-in-php.html</guid>
		<description><![CDATA[uksort &#8211;  Sort an array by keys using a user-defined comparison function

Description
bool uksort ( array array, callback  cmp_function)
uksort() will sort the keys of an array using a  user-supplied comparison function. If the array you wish to sort needs to be  sorted by some non-trivial criteria, you should use this function.
Function cmp_function should accept [...]]]></description>
			<content:encoded><![CDATA[<p class="refnamediv">uksort &#8211;  Sort an array by keys using a user-defined comparison function</p>
<p class="refsect1"><a title="AEN10593" name="AEN10593"></a></p>
<h2>Description</h2>
<p>bool <strong class="methodname">uksort</strong> ( array array, callback  cmp_function)</p>
<p><strong class="function">uksort()</strong> will sort the keys of an array using a  user-supplied comparison function. If the array you wish to sort needs to be  sorted by some non-trivial criteria, you should use this function.</p>
<p>Function <tt class="parameter"><em>cmp_function</em></tt> should accept two  parameters which will be filled by pairs of <tt class="parameter"><em>array</em></tt> keys. The comparison function must return an  integer less than, equal to, or greater than zero if the first argument is  considered to be respectively less than, equal to, or greater than the second.</p>
<p>Returns <tt class="constant"><strong>TRUE</strong></tt> on success or <tt class="constant"><strong>FALSE</strong></tt> on failure.</p>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a title="AEN10613" name="AEN10613"></a><strong>Example 1. <strong class="function">uksort()</strong> example</strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php<br />
</font><font color="#007700">function </font><font color="#0000bb">cmp</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">,  </font><font color="#0000bb">$b</font><font color="#007700">) {<br />
if  (</font><font color="#0000bb">$a </font><font color="#007700">== </font><font color="#0000bb">$b</font><font color="#007700">) {<br />
return </font><font color="#0000bb">0</font><font color="#007700">;<br />
}<br />
return (</font><font color="#0000bb">$a </font><font color="#007700">&gt; </font><font color="#0000bb">$b</font><font color="#007700">) ? -</font><font color="#0000bb">1  </font><font color="#007700">: </font><font color="#0000bb">1</font><font color="#007700">;<br />
}</p>
<p></font><font color="#0000bb">$a </font><font color="#007700">= array(</font><font color="#0000bb">4 </font><font color="#007700">=&gt; </font><font color="#dd0000">&#8220;four&#8221;</font><font color="#007700">, </font><font color="#0000bb">3 </font><font color="#007700">=&gt;  </font><font color="#dd0000">&#8220;three&#8221;</font><font color="#007700">, </font><font color="#0000bb">20 </font><font color="#007700">=&gt; </font><font color="#dd0000">&#8220;twenty&#8221;</font><font color="#007700">, </font><font color="#0000bb">10  </font><font color="#007700">=&gt; </font><font color="#dd0000">&#8220;ten&#8221;</font><font color="#007700">);</p>
<p></font><font color="#0000bb">uksort</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">,  </font><font color="#dd0000">&#8220;cmp&#8221;</font><font color="#007700">);</p>
<p>while  (list(</font><font color="#0000bb">$key</font><font color="#007700">, </font><font color="#0000bb">$value</font><font color="#007700">) = </font><font color="#0000bb">each</font><font color="#007700">(</font><font color="#0000bb">$a</font><font color="#007700">)) {<br />
echo </font><font color="#dd0000">&#8220;$key: $value</font><font color="#007700">\n</font><font color="#dd0000">&#8220;</font><font color="#007700">;<br />
}<br />
</font><font color="#0000bb">?&gt;</font> </font></code></td>
</tr>
</table>
<p>This example would display:</p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td>
<pre class="screen">20: twenty
10: ten
4: four
3: three</pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.akifkardas.com/2008/05/08/using-uksort-in-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using uasort in PHP</title>
		<link>http://www.akifkardas.com/2008/05/08/using-uasort-in-php.html</link>
		<comments>http://www.akifkardas.com/2008/05/08/using-uasort-in-php.html#comments</comments>
		<pubDate>Thu, 08 May 2008 13:45:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.akifkardas.com/2008/05/08/using-uasort-in-php.html</guid>
		<description><![CDATA[uasort &#8211;  Sort an array with a user-defined comparison function and maintain  index association

Description
bool uasort ( array array, callback  cmp_function)
This function sorts an array such that array indices maintain their  correlation with the array elements they are associated with. This is used  mainly when sorting associative arrays where the actual element order [...]]]></description>
			<content:encoded><![CDATA[<p class="refnamediv">uasort &#8211;  Sort an array with a user-defined comparison function and maintain  index association</p>
<p class="refsect1"><a name="AEN10562"></a></p>
<h2>Description</h2>
<p>bool <strong class="methodname">uasort</strong> ( array array, callback  cmp_function)</p>
<p>This function sorts an array such that array indices maintain their  correlation with the array elements they are associated with. This is used  mainly when sorting associative arrays where the actual element order is  significant. The comparison function is user-defined.</p>
<p>Returns <tt class="constant"><strong>TRUE</strong></tt> on success or <tt class="constant"><strong>FALSE</strong></tt> on failure.</p>
<p class="note">
<blockquote class="note"><p><strong>Note: </strong>Please see <strong class="function">usort()</strong> and <strong class="function">uksort()</strong> for examples of user-defined comparison  functions.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.akifkardas.com/2008/05/08/using-uasort-in-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using Sort Function in PHP</title>
		<link>http://www.akifkardas.com/2008/05/08/using-sort-function-in-php.html</link>
		<comments>http://www.akifkardas.com/2008/05/08/using-sort-function-in-php.html#comments</comments>
		<pubDate>Thu, 08 May 2008 13:44:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.akifkardas.com/2008/05/08/using-sort-function-in-php.html</guid>
		<description><![CDATA[sort &#8211; Sort an array

Description
bool sort ( array array [, int  sort_flags])
This function sorts an array. Elements will be arranged from lowest to  highest when this function has completed.

Note: This function assigns new keys for the elements in array. It will remove any existing keys you may have  assigned, rather than just reordering the [...]]]></description>
			<content:encoded><![CDATA[<p class="refnamediv">sort &#8211; Sort an array</p>
<p class="refsect1"><a name="AEN10510"></a></p>
<h2>Description</h2>
<p>bool <strong class="methodname">sort</strong> ( array array [, int  sort_flags])</p>
<p>This function sorts an array. Elements will be arranged from lowest to  highest when this function has completed.</p>
<p class="note">
<blockquote class="note"><p><strong>Note: </strong>This function assigns new keys for the elements in <tt class="parameter"><em>array</em></tt>. It will remove any existing keys you may have  assigned, rather than just reordering the keys.</p></blockquote>
<p>Returns <tt class="constant"><strong>TRUE</strong></tt> on success or <tt class="constant"><strong>FALSE</strong></tt> on failure.</p>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a name="AEN10529"></a><strong>Example 1. <strong class="function">sort()</strong> example</strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php</p>
<p>$fruits  </font><font color="#007700">= array(</font><font color="#dd0000">&#8220;lemon&#8221;</font><font color="#007700">, </font><font color="#dd0000">&#8220;orange&#8221;</font><font color="#007700">, </font><font color="#dd0000">&#8220;banana&#8221;</font><font color="#007700">, </font><font color="#dd0000">&#8220;apple&#8221;</font><font color="#007700">);<br />
</font><font color="#0000bb">sort</font><font color="#007700">(</font><font color="#0000bb">$fruits</font><font color="#007700">);<br />
</font><font color="#0000bb">reset</font><font color="#007700">(</font><font color="#0000bb">$fruits</font><font color="#007700">);<br />
while (list(</font><font color="#0000bb">$key</font><font color="#007700">, </font><font color="#0000bb">$val</font><font color="#007700">) = </font><font color="#0000bb">each</font><font color="#007700">(</font><font color="#0000bb">$fruits</font><font color="#007700">)) {<br />
echo </font><font color="#dd0000">&#8220;fruits[&#8221; </font><font color="#007700">. </font><font color="#0000bb">$key </font><font color="#007700">. </font><font color="#dd0000">&#8220;] =  &#8221; </font><font color="#007700">. </font><font color="#0000bb">$val </font><font color="#007700">. </font><font color="#dd0000">&#8220;\n&#8221;</font><font color="#007700">;<br />
}</p>
<p></font><font color="#0000bb">?&gt;</font>  </font></code></td>
</tr>
</table>
<p>This example would display:</p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td>
<pre class="screen">fruits[0] = apple
fruits[1] = banana
fruits[2] = lemon
fruits[3] = orange</pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>The fruits have been sorted in alphabetical order.</p>
<p>The optional second parameter <tt class="parameter"><em>sort_flags</em></tt> may  be used to modify the sorting behavior using these values:</p>
<p>Sorting type flags:</p>
<ul>
<li>SORT_REGULAR - compare items normally</li>
<li>SORT_NUMERIC - compare items numerically</li>
<li>SORT_STRING - compare items as strings</li>
</ul>
<p class="note">
<blockquote class="note"><p><strong>Note: </strong>The second parameter was added in PHP 4.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.akifkardas.com/2008/05/08/using-sort-function-in-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using shuffle in PHP</title>
		<link>http://www.akifkardas.com/2008/05/08/using-shuffle-in-php.html</link>
		<comments>http://www.akifkardas.com/2008/05/08/using-shuffle-in-php.html#comments</comments>
		<pubDate>Thu, 08 May 2008 13:44:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.akifkardas.com/2008/05/08/using-shuffle-in-php.html</guid>
		<description><![CDATA[shuffle &#8211; Shuffle an array

Description
void shuffle ( array array)
This function shuffles (randomizes the order of the elements in) an array.  You must use srand() to  seed this function.



Example 1. shuffle() example


&#60;?php
$numbers  = range(1,  20);
srand((float)microtime() * 1000000);
shuffle($numbers);
while (list(,  $number) = each($numbers)) {
echo &#8220;$number &#8220;;
}
?&#62;  






Note: As of PHP 4.2.0, there is no [...]]]></description>
			<content:encoded><![CDATA[<p class="refnamediv">shuffle &#8211; Shuffle an array</p>
<p class="refsect1"><a title="AEN10472" name="AEN10472"></a></p>
<h2>Description</h2>
<p>void <strong class="methodname">shuffle</strong> ( array array)</p>
<p>This function shuffles (randomizes the order of the elements in) an array.  You must use <strong class="function">srand()</strong> to  seed this function.</p>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a title="AEN10482" name="AEN10482"></a><strong>Example 1. <strong class="function">shuffle()</strong> example</strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php<br />
$numbers  </font><font color="#007700">= </font><font color="#0000bb">range</font><font color="#007700">(</font><font color="#0000bb">1</font><font color="#007700">,  </font><font color="#0000bb">20</font><font color="#007700">);<br />
</font><font color="#0000bb">srand</font><font color="#007700">((float)</font><font color="#0000bb">microtime</font><font color="#007700">() * </font><font color="#0000bb">1000000</font><font color="#007700">);<br />
</font><font color="#0000bb">shuffle</font><font color="#007700">(</font><font color="#0000bb">$numbers</font><font color="#007700">);<br />
while (list(,  </font><font color="#0000bb">$number</font><font color="#007700">) = </font><font color="#0000bb">each</font><font color="#007700">(</font><font color="#0000bb">$numbers</font><font color="#007700">)) {<br />
echo </font><font color="#dd0000">&#8220;$number &#8220;</font><font color="#007700">;<br />
}<br />
</font><font color="#0000bb">?&gt;</font>  </font></code></td>
</tr>
</table>
</td>
</tr>
</table>
<p class="note">
<blockquote class="note"><p><strong>Note: </strong>As of PHP 4.2.0, there is no need to seed the random number  generator with <strong class="function">srand()</strong>  or <strong class="function">mt_srand()</strong> as this  is now done automatically.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.akifkardas.com/2008/05/08/using-shuffle-in-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using rsort in PHP</title>
		<link>http://www.akifkardas.com/2008/05/08/using-rsort-in-php.html</link>
		<comments>http://www.akifkardas.com/2008/05/08/using-rsort-in-php.html#comments</comments>
		<pubDate>Thu, 08 May 2008 13:43:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.akifkardas.com/2008/05/08/using-rsort-in-php.html</guid>
		<description><![CDATA[rsort &#8211; Sort an array in reverse order

Description
bool rsort ( array array [, int  sort_flags])
This function sorts an array in reverse order (highest to lowest).
Returns TRUE on success or FALSE on failure.



Example 1. rsort() example


&#60;?php
$fruits  = array(&#8220;lemon&#8221;, &#8220;orange&#8221;, &#8220;banana&#8221;, &#8220;apple&#8221;);
rsort($fruits);
reset($fruits);
while (list($key, $val) = each($fruits)) {
echo &#8220;$key = $val\n&#8220;;
}
?&#62; 


This example would display:



0 = orange
1 = [...]]]></description>
			<content:encoded><![CDATA[<p class="refnamediv">rsort &#8211; Sort an array in reverse order</p>
<p class="refsect1"><a name="AEN10436"></a></p>
<h2>Description</h2>
<p>bool <strong class="methodname">rsort</strong> ( array array [, int  sort_flags])</p>
<p>This function sorts an array in reverse order (highest to lowest).</p>
<p>Returns <tt class="constant"><strong>TRUE</strong></tt> on success or <tt class="constant"><strong>FALSE</strong></tt> on failure.</p>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a name="AEN10452"></a><strong>Example 1. <strong class="function">rsort()</strong> example</strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php<br />
$fruits  </font><font color="#007700">= array(</font><font color="#dd0000">&#8220;lemon&#8221;</font><font color="#007700">, </font><font color="#dd0000">&#8220;orange&#8221;</font><font color="#007700">, </font><font color="#dd0000">&#8220;banana&#8221;</font><font color="#007700">, </font><font color="#dd0000">&#8220;apple&#8221;</font><font color="#007700">);<br />
</font><font color="#0000bb">rsort</font><font color="#007700">(</font><font color="#0000bb">$fruits</font><font color="#007700">);<br />
</font><font color="#0000bb">reset</font><font color="#007700">(</font><font color="#0000bb">$fruits</font><font color="#007700">);<br />
while (list(</font><font color="#0000bb">$key</font><font color="#007700">, </font><font color="#0000bb">$val</font><font color="#007700">) = </font><font color="#0000bb">each</font><font color="#007700">(</font><font color="#0000bb">$fruits</font><font color="#007700">)) {<br />
echo </font><font color="#dd0000">&#8220;$key = $val</font><font color="#007700">\n</font><font color="#dd0000">&#8220;</font><font color="#007700">;<br />
}<br />
</font><font color="#0000bb">?&gt;</font> </font></code></td>
</tr>
</table>
<p>This example would display:</p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td>
<pre class="screen">0 = orange
1 = lemon
2 = banana
3 = apple</pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>The fruits have been sorted in reverse alphabetical order.</p>
<p>You may modify the behavior of the sort using the optional parameter <tt class="parameter"><em>sort_flags</em></tt></p>
]]></content:encoded>
			<wfw:commentRss>http://www.akifkardas.com/2008/05/08/using-rsort-in-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using reset in PHP</title>
		<link>http://www.akifkardas.com/2008/05/08/using-reset-in-php.html</link>
		<comments>http://www.akifkardas.com/2008/05/08/using-reset-in-php.html#comments</comments>
		<pubDate>Thu, 08 May 2008 13:43:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.akifkardas.com/2008/05/08/using-reset-in-php.html</guid>
		<description><![CDATA[reset &#8211;  Set the internal pointer of an array to its first element

Description
mixed reset ( array array)
reset() rewinds array&#8217;s  internal pointer to the first element and returns the value of the first array  element.



Example 1. reset() example


&#60;?php
$array  = array(&#8217;step  one&#8217;, &#8217;step  two&#8217;, &#8217;step  three&#8217;, &#8217;step  four&#8217;);
// by  default, [...]]]></description>
			<content:encoded><![CDATA[<p class="refnamediv">reset &#8211;  Set the internal pointer of an array to its first element</p>
<p class="refsect1"><a name="AEN10411"></a></p>
<h2>Description</h2>
<p>mixed <strong class="methodname">reset</strong> ( array array)</p>
<p><strong class="function">reset()</strong> rewinds <tt class="parameter"><em>array</em></tt>&#8217;s  internal pointer to the first element and returns the value of the first array  element.</p>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a name="AEN10423"></a><strong>Example 1. <strong class="function">reset()</strong> example</strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php</p>
<p>$array  </font><font color="#007700">= array(</font><font color="#dd0000">&#8217;step  one&#8217;</font><font color="#007700">, </font><font color="#dd0000">&#8217;step  two&#8217;</font><font color="#007700">, </font><font color="#dd0000">&#8217;step  three&#8217;</font><font color="#007700">, </font><font color="#dd0000">&#8217;step  four&#8217;</font><font color="#007700">);</p>
<p></font><font color="#ff8000">// by  default, the pointer is on the first element<br />
</font><font color="#007700">echo </font><font color="#0000bb">current</font><font color="#007700">(</font><font color="#0000bb">$array</font><font color="#007700">) .  </font><font color="#dd0000">&#8220;&lt;br /&gt;\n&#8221;</font><font color="#007700">;  </font><font color="#ff8000">// &#8220;step one&#8221;</p>
<p>// skip two  steps<br />
</font><font color="#0000bb">next</font><font color="#007700">(</font><font color="#0000bb">$array</font><font color="#007700">);<br />
</font><font color="#0000bb">next</font><font color="#007700">(</font><font color="#0000bb">$array</font><font color="#007700">);<br />
echo </font><font color="#0000bb">current</font><font color="#007700">(</font><font color="#0000bb">$array</font><font color="#007700">) . </font><font color="#dd0000">&#8220;&lt;br /&gt;\n&#8221;</font><font color="#007700">; </font><font color="#ff8000">// &#8220;step three&#8221;</p>
<p>// reset pointer, start again on step  one<br />
</font><font color="#0000bb">reset</font><font color="#007700">(</font><font color="#0000bb">$array</font><font color="#007700">);<br />
echo </font><font color="#0000bb">current</font><font color="#007700">(</font><font color="#0000bb">$array</font><font color="#007700">) . </font><font color="#dd0000">&#8220;&lt;br /&gt;\n&#8221;</font><font color="#007700">; </font><font color="#ff8000">// &#8220;step one&#8221;</p>
<p></font><font color="#0000bb">?&gt;</font>  </font></code></td>
</tr>
</table>
</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.akifkardas.com/2008/05/08/using-reset-in-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using range function in PHP</title>
		<link>http://www.akifkardas.com/2008/05/08/using-range-function-in-php.html</link>
		<comments>http://www.akifkardas.com/2008/05/08/using-range-function-in-php.html#comments</comments>
		<pubDate>Thu, 08 May 2008 13:42:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.akifkardas.com/2008/05/08/using-range-function-in-php.html</guid>
		<description><![CDATA[range &#8211;  Create an array containing a range of elements

Description
array range ( int low, int high [,  int step])
range() returns an array of elements from low to high,  inclusive. If low &#62; high, the sequence will be from high to low.

New parameter: The optional step  parameter was added in 5.0.0.
If a step value [...]]]></description>
			<content:encoded><![CDATA[<p class="refnamediv">range &#8211;  Create an array containing a range of elements</p>
<p class="refsect1"><a name="AEN10364"></a></p>
<h2>Description</h2>
<p>array <strong class="methodname">range</strong> ( int low, int high [,  int step])</p>
<p><strong class="function">range()</strong> returns an array of elements from <tt class="parameter"><em>low</em></tt> to <tt class="parameter"><em>high</em></tt>,  inclusive. If low &gt; high, the sequence will be from high to low.</p>
<p class="note">
<blockquote class="note"><p><strong>New parameter: </strong>The optional <tt class="parameter"><em>step</em></tt>  parameter was added in 5.0.0.</p></blockquote>
<p>If a <tt class="parameter"><em>step</em></tt> value is given, it will be used as  the increment between elements in the sequence. <tt class="parameter"><em>step</em></tt> should be given as a positive number. If not  specified, <tt class="parameter"><em>step</em></tt> will default to 1.</p>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a name="AEN10391"></a><strong>Example 1. <strong class="function">range()</strong> examples</strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php<br />
</font><font color="#ff8000">// array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)<br />
</font><font color="#007700">foreach (</font><font color="#0000bb">range</font><font color="#007700">(</font><font color="#0000bb">0</font><font color="#007700">,  </font><font color="#0000bb">12</font><font color="#007700">) as </font><font color="#0000bb">$number</font><font color="#007700">) {<br />
echo </font><font color="#0000bb">$number</font><font color="#007700">;<br />
}</p>
<p></font><font color="#ff8000">// The step parameter was introduced in 5.0.0<br />
// array(0, 10,  20, 30, 40, 50, 60, 70, 80, 90, 100)<br />
</font><font color="#007700">foreach  (</font><font color="#0000bb">range</font><font color="#007700">(</font><font color="#0000bb">0</font><font color="#007700">, </font><font color="#0000bb">100</font><font color="#007700">, </font><font color="#0000bb">10</font><font color="#007700">) as </font><font color="#0000bb">$number</font><font color="#007700">) {<br />
echo </font><font color="#0000bb">$number</font><font color="#007700">;<br />
}</p>
<p></font><font color="#ff8000">// Use of character sequences introduced in 4.1.0<br />
// array(&#8217;a',  &#8216;b&#8217;, &#8216;c&#8217;, &#8216;d&#8217;, &#8216;e&#8217;, &#8216;f&#8217;, &#8216;g&#8217;, &#8216;h&#8217;, &#8216;i&#8217;);<br />
</font><font color="#007700">foreach  (</font><font color="#0000bb">range</font><font color="#007700">(</font><font color="#dd0000">&#8216;a&#8217;</font><font color="#007700">, </font><font color="#dd0000">&#8216;i&#8217;</font><font color="#007700">) as </font><font color="#0000bb">$letter</font><font color="#007700">) {<br />
echo </font><font color="#0000bb">$letter</font><font color="#007700">;<br />
}<br />
</font><font color="#ff8000">// array(&#8217;c', &#8216;b&#8217;, &#8216;a&#8217;);<br />
</font><font color="#007700">foreach  (</font><font color="#0000bb">range</font><font color="#007700">(</font><font color="#dd0000">&#8216;c&#8217;</font><font color="#007700">, </font><font color="#dd0000">&#8216;a&#8217;</font><font color="#007700">) as </font><font color="#0000bb">$letter</font><font color="#007700">) {<br />
echo </font><font color="#0000bb">$letter</font><font color="#007700">;<br />
}<br />
</font><font color="#0000bb">?&gt;</font>  </font></code></td>
</tr>
</table>
</td>
</tr>
</table>
<p class="note">
<blockquote class="note"><p><strong>Note: </strong>Prior to PHP version 4.1.0, <strong class="function">range()</strong> only  generated incrementing integer arrays. Support for character sequences and  decrementing arrays was added in 4.1.0. Character sequence values are limited to  a length of one. If a length greater than one is entered, only the first  character is used.</p></blockquote>
<p class="caution">
<table class="caution" border="1" width="100%">
<tr>
<td align="center"><strong>Caution</strong></td>
</tr>
<tr>
<td align="left">In PHP versions 4.1.0 through 4.3.2, <strong class="function">range()</strong> sees  numeric strings as strings and not integers. Instead, they will be used for  character sequences. For example, <tt class="literal">&#8220;4242&#8243;</tt> is treated as  <tt class="literal">&#8220;4&#8243;</tt>.</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.akifkardas.com/2008/05/08/using-range-function-in-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using Prev in PHP</title>
		<link>http://www.akifkardas.com/2008/05/08/using-prev-in-php.html</link>
		<comments>http://www.akifkardas.com/2008/05/08/using-prev-in-php.html#comments</comments>
		<pubDate>Thu, 08 May 2008 13:42:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.akifkardas.com/2008/05/08/using-prev-in-php.html</guid>
		<description><![CDATA[prev &#8211; Rewind the internal array pointer

Description
mixed prev ( array array)
Returns the array value in the previous place that&#8217;s pointed to by the  internal array pointer, or FALSE if there are no  more elements.



Warning


If the array contains empty elements then this function will return FALSE for these elements as well. To properly  traverse an [...]]]></description>
			<content:encoded><![CDATA[<p class="refnamediv">prev &#8211; Rewind the internal array pointer</p>
<p class="refsect1"><a name="AEN10333"></a></p>
<h2>Description</h2>
<p>mixed <strong class="methodname">prev</strong> ( array array)</p>
<p>Returns the array value in the previous place that&#8217;s pointed to by the  internal array pointer, or <tt class="constant"><strong>FALSE</strong></tt> if there are no  more elements.</p>
<p class="warning">
<table class="warning" border="1" width="100%">
<tr>
<td align="center"><strong>Warning</strong></td>
</tr>
<tr>
<td align="left">If the array contains empty elements then this function will return <tt class="constant"><strong>FALSE</strong></tt> for these elements as well. To properly  traverse an array which may contain empty elements see the <strong class="function">each()</strong> function.</td>
</tr>
</table>
<p><strong class="function">prev()</strong> behaves just like <strong class="function">next()</strong>, except it rewinds  the internal array pointer one place instead of advancing it.</p>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a name="AEN10351"></a><strong>Example 1. Example use of <strong class="function">prev()</strong> and friends</strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php<br />
$transport  </font><font color="#007700">= array(</font><font color="#dd0000">&#8216;foot&#8217;</font><font color="#007700">, </font><font color="#dd0000">&#8216;bike&#8217;</font><font color="#007700">,  </font><font color="#dd0000">&#8216;car&#8217;</font><font color="#007700">, </font><font color="#dd0000">&#8216;plane&#8217;</font><font color="#007700">);<br />
</font><font color="#0000bb">$mode </font><font color="#007700">= </font><font color="#0000bb">current</font><font color="#007700">(</font><font color="#0000bb">$transport</font><font color="#007700">); </font><font color="#ff8000">// $mode = &#8216;foot&#8217;;<br />
</font><font color="#0000bb">$mode  </font><font color="#007700">= </font><font color="#0000bb">next</font><font color="#007700">(</font><font color="#0000bb">$transport</font><font color="#007700">);    </font><font color="#ff8000">// $mode =  &#8216;bike&#8217;;<br />
</font><font color="#0000bb">$mode </font><font color="#007700">=  </font><font color="#0000bb">next</font><font color="#007700">(</font><font color="#0000bb">$transport</font><font color="#007700">);    </font><font color="#ff8000">// $mode = &#8216;car&#8217;;<br />
</font><font color="#0000bb">$mode </font><font color="#007700">= </font><font color="#0000bb">prev</font><font color="#007700">(</font><font color="#0000bb">$transport</font><font color="#007700">);    </font><font color="#ff8000">// $mode =  &#8216;bike&#8217;;<br />
</font><font color="#0000bb">$mode </font><font color="#007700">=  </font><font color="#0000bb">end</font><font color="#007700">(</font><font color="#0000bb">$transport</font><font color="#007700">);     </font><font color="#ff8000">// $mode = &#8216;plane&#8217;;<br />
</font><font color="#0000bb">?&gt;</font>  </font></code></td>
</tr>
</table>
</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.akifkardas.com/2008/05/08/using-prev-in-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using Next Function in PHP</title>
		<link>http://www.akifkardas.com/2008/05/08/using-next-function-in-php.html</link>
		<comments>http://www.akifkardas.com/2008/05/08/using-next-function-in-php.html#comments</comments>
		<pubDate>Thu, 08 May 2008 13:41:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.akifkardas.com/2008/05/08/using-next-function-in-php.html</guid>
		<description><![CDATA[next &#8211;  Advance the internal array pointer of an array

Description
mixed next ( array array)
Returns the array value in the next place that&#8217;s pointed to by the internal  array pointer, or FALSE if there are no more  elements.
next() behaves like current(), with one difference. It advances the internal  array pointer one place forward before [...]]]></description>
			<content:encoded><![CDATA[<p class="refnamediv">next &#8211;  Advance the internal array pointer of an array</p>
<p class="refsect1"><a name="AEN10280"></a></p>
<h2>Description</h2>
<p>mixed <strong class="methodname">next</strong> ( array array)</p>
<p>Returns the array value in the next place that&#8217;s pointed to by the internal  array pointer, or <tt class="constant"><strong>FALSE</strong></tt> if there are no more  elements.</p>
<p><strong class="function">next()</strong> behaves like <strong class="function">current()</strong>, with one difference. It advances the internal  array pointer one place forward before returning the element value. That means  it returns the next array value and advances the internal array pointer by one.  If advancing the internal array pointer results in going beyond the end of the  element list, <strong class="function">next()</strong> returns <tt class="constant"><strong>FALSE</strong></tt>.</p>
<p class="warning">
<table class="warning" border="1" width="100%">
<tr>
<td align="center"><strong>Warning</strong></td>
</tr>
<tr>
<td align="left">If the array contains empty elements, or elements that have a key value of 0  then this function will return <tt class="constant"><strong>FALSE</strong></tt> for these  elements as well. To properly traverse an array which may contain empty elements  or elements with key values of 0 see the <strong class="function">each()</strong> function.</td>
</tr>
</table>
<table class="EXAMPLE" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<p class="example"><a name="AEN10300"></a><strong>Example 1. Example use of <strong class="function">next()</strong> and friends</strong></p>
<table bgcolor="#e0e0e0" border="0" cellpadding="5">
<tr>
<td><code><font color="#000000"><font color="#0000bb">&lt;?php<br />
$transport  </font><font color="#007700">= array(</font><font color="#dd0000">&#8216;foot&#8217;</font><font color="#007700">, </font><font color="#dd0000">&#8216;bike&#8217;</font><font color="#007700">,  </font><font color="#dd0000">&#8216;car&#8217;</font><font color="#007700">, </font><font color="#dd0000">&#8216;plane&#8217;</font><font color="#007700">);<br />
</font><font color="#0000bb">$mode </font><font color="#007700">= </font><font color="#0000bb">current</font><font color="#007700">(</font><font color="#0000bb">$transport</font><font color="#007700">); </font><font color="#ff8000">// $mode = &#8216;foot&#8217;;<br />
</font><font color="#0000bb">$mode  </font><font color="#007700">= </font><font color="#0000bb">next</font><font color="#007700">(</font><font color="#0000bb">$transport</font><font color="#007700">);    </font><font color="#ff8000">// $mode =  &#8216;bike&#8217;;<br />
</font><font color="#0000bb">$mode </font><font color="#007700">=  </font><font color="#0000bb">next</font><font color="#007700">(</font><font color="#0000bb">$transport</font><font color="#007700">);    </font><font color="#ff8000">// $mode = &#8216;car&#8217;;<br />
</font><font color="#0000bb">$mode </font><font color="#007700">= </font><font color="#0000bb">prev</font><font color="#007700">(</font><font color="#0000bb">$transport</font><font color="#007700">);    </font><font color="#ff8000">// $mode =  &#8216;bike&#8217;;<br />
</font><font color="#0000bb">$mode </font><font color="#007700">=  </font><font color="#0000bb">end</font><font color="#007700">(</font><font color="#0000bb">$transport</font><font color="#007700">);     </font><font color="#ff8000">// $mode = &#8216;plane&#8217;;<br />
</font><font color="#0000bb">?&gt;</font>  </font></code></td>
</tr>
</table>
</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.akifkardas.com/2008/05/08/using-next-function-in-php.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
