<?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 extract</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/php-extract/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 : Extract function</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-extract-function/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-extract-function/#comments</comments>
		<pubDate>Thu, 14 May 2009 06:54:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Usefull PHP]]></category>
		<category><![CDATA[array keys to variables]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[php extract]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=211</guid>
		<description><![CDATA[A shame for me but I must tell you this function called extract() simply rocks : it will extract &#8220;keys&#8221; from an array and convert them into variables, so no more needed to manually declare variables for validation purposes from &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-extract-function/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A shame for me but I must tell you this function called extract() simply rocks : it will extract &#8220;keys&#8221; from an array and convert them into variables, so no more needed to manually declare variables for validation purposes from forms.</p>
<pre class="php">
<span class="htmlFormTag">&lt;form action=<span class="htmlAttributeValue">&quot;&quot;</span> method=<span class="htmlAttributeValue">&quot;post&quot;</span>&gt;</span>
name <span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;text&quot;</span> name=<span class="htmlAttributeValue">&quot;name&quot;</span>&gt;</span><span class="htmlOtherTag">&lt;br/&gt;</span>
email <span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;text&quot;</span> name=<span class="htmlAttributeValue">&quot;email&quot;</span>&gt;</span><span class="htmlOtherTag">&lt;br/&gt;</span>
<span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;submit&quot;</span> name=<span class="htmlAttributeValue">&quot;sb&quot;</span> id=<span class="htmlAttributeValue">&quot;sb&quot;</span> value=<span class="htmlAttributeValue">&quot;go&quot;</span>&gt;</span>
<span class="htmlFormTag">&lt;/form&gt;</span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpKeyword">
if<span class="phpOperator">(</span></span><span class="phpFunction">isset</span><span class="phpOperator">(</span><span class="phpScriptVar">$_POST</span><span class="phpOperator">[</span><span class="phpString">'sb'</span><span class="phpOperator">]</span><span class="phpOperator">)</span><span class="phpOperator">)</span> <span class="phpOperator">{</span>
<span class="phpFunction">extract</span><span class="phpOperator">(</span><span class="phpScriptVar">$_POST</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpKeyword">
if<span class="phpOperator">(</span></span><span class="phpFunction">empty</span><span class="phpOperator">(</span>$name<span class="phpOperator">)</span> <span class="phpOperator">|</span><span class="phpOperator">|</span> <span class="phpFunction">empty</span><span class="phpOperator">(</span>$email<span class="phpOperator">)</span><span class="phpOperator">)</span> <span class="phpFunction">die</span><span class="phpOperator">(</span><span class="phpString">"email and name emtpy"</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="htmlText">
print </span><span class="phpString">"Name is $name and email is $email now<span class="phpOperator">!</span>"</span><span class="phpText">;</span>
<span class="phpOperator">}</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-extract-function/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

