<?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>PHP Tutorials Code Snippets and Php Tips &#187; php list</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/php-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Tutorial : List function</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-list-function/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-list-function/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 05:14:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Usefull PHP]]></category>
		<category><![CDATA[assign variables]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[php convert string into variable]]></category>
		<category><![CDATA[php list]]></category>
		<category><![CDATA[php list function]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=298</guid>
		<description><![CDATA[Beeing surprised that I didn&#8217;t write here about this &#8220;cute&#8221; php function called list(). I like it a lot, it&#8217;s like the extract() function in some way if you remember. The list() php function will assign variables in one shot &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-list-function/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Beeing surprised that I didn&#8217;t write here about this &#8220;cute&#8221; php function called list(). I like it a lot, it&#8217;s like the extract() function in some way if you remember.</p>
<p>The list() php function will assign variables in one shot to strings from arrays.</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpComment">//here&#039;s the php <span class="phpFunction">array</span>
</span>
$countingArray <span class="phpOperator">=</span> <span class="phpFunction">array</span><span class="phpOperator">(</span><span class="phpNumber">1</span>,2,<span class="phpNumber">3</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpComment">//here, the <span class="phpFunction">list</span> <span class="phpFunctionKeyword">function</span><span class="htmlText"> will convert </span><span class="phpNumber">1</span> to $one variable, <span class="phpNumber">2</span> to $two and <span class="phpNumber">3</span> to $three
</span>
<span class="phpFunction">list</span><span class="phpOperator">(</span><span class="phpString">"one"</span>, <span class="phpString">"two"</span>, <span class="phpString">"three"</span><span class="phpOperator">)</span> <span class="phpOperator">=</span> $countingArray<span class="phpText">;</span>
<span class="htmlText">
print </span><span class="phpString">"I am counting $one, errr I think it comes $two, and lastly $three"</span><span class="phpText">;</span>
<span class="phpComment">//should print I am counting <span class="phpNumber">1</span>, err.<span class="phpOperator">.</span>.<span class="phpOperator">.</span><span class="htmlText">comes </span><span class="phpNumber">2</span><span class="htmlText"> and lastly </span><span class="phpNumber">3</span>
</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-list-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

