<?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>Ersin Acar &#187; foreach</title>
	<atom:link href="http://ersinacar.com/tag/foreach/feed" rel="self" type="application/rss+xml" />
	<link>http://ersinacar.com</link>
	<description>PHP and Web Technologies Freak</description>
	<lastBuildDate>Fri, 06 Jan 2012 14:19:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Convert $_GET $_POST to normal variables</title>
		<link>http://ersinacar.com/convert-_get-_post-to-normal-variables_10.html</link>
		<comments>http://ersinacar.com/convert-_get-_post-to-normal-variables_10.html#comments</comments>
		<pubDate>Sun, 05 Apr 2009 19:25:13 +0000</pubDate>
		<dc:creator>Ersin Acar</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[foreach]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[register_globals]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=10</guid>
		<description><![CDATA[Hi there! At my first days on PHP coding i had lots of  register_globals problem. and i couldn&#8217;t change php.ini file and ini_set() didn&#8217;t work and i found my on way for this.. 1 2 3 4 5 6 7 8 9 10 &#60;?php foreach&#40;$_POST as $postkey =&#62;; $postvalue&#41;&#123; $$postkey = $postvalue; &#125; &#160; foreach&#40;$_GET [...]]]></description>
			<content:encoded><![CDATA[<div>Hi there!</div>
<div>At my first days on PHP coding i had lots of  <a href="http://php.net/register_globals">register_globals</a> problem. and i couldn&#8217;t change php.ini file and ini_set() didn&#8217;t work and i found my on way for this..</div>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$postkey</span> <span style="color: #339933;">=&gt;;</span> <span style="color: #000088;">$postvalue</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$$postkey</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$postvalue</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$getkey</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$getvalue</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$$getkey</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$getvalue</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<div>I hope  it helps some one <img src='http://ersinacar.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </div>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/convert-_get-_post-to-normal-variables_10.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

