<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: You can in fact use foreach to change array elements in PHP</title>
	<atom:link href="http://codingrecipes.com/you-can-in-fact-use-foreach-to-change-array-elements-in-php/feed" rel="self" type="application/rss+xml" />
	<link>http://codingrecipes.com/you-can-in-fact-use-foreach-to-change-array-elements-in-php</link>
	<description></description>
	<lastBuildDate>Tue, 01 May 2012 00:54:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Mike S</title>
		<link>http://codingrecipes.com/you-can-in-fact-use-foreach-to-change-array-elements-in-php/comment-page-1#comment-4504</link>
		<dc:creator>Mike S</dc:creator>
		<pubDate>Tue, 17 Apr 2012 16:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=160#comment-4504</guid>
		<description>Just want to correct Anon&#039;s post:

When foreach first starts executing, the internal array pointer is automatically reset to the first element of the array. This means that you do not need to call reset() before a foreach loop.</description>
		<content:encoded><![CDATA[<p>Just want to correct Anon&#8217;s post:</p>
<p>When foreach first starts executing, the internal array pointer is automatically reset to the first element of the array. This means that you do not need to call reset() before a foreach loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon</title>
		<link>http://codingrecipes.com/you-can-in-fact-use-foreach-to-change-array-elements-in-php/comment-page-1#comment-2052</link>
		<dc:creator>Anon</dc:creator>
		<pubDate>Wed, 08 Jun 2011 01:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=160#comment-2052</guid>
		<description>Actually the original example works just fine.  You need to unset the value after the loop: unset($value)

This is a good practice to follow, along with reseting your  array before using it in a loop.

Have a good day.</description>
		<content:encoded><![CDATA[<p>Actually the original example works just fine.  You need to unset the value after the loop: unset($value)</p>
<p>This is a good practice to follow, along with reseting your  array before using it in a loop.</p>
<p>Have a good day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Willis</title>
		<link>http://codingrecipes.com/you-can-in-fact-use-foreach-to-change-array-elements-in-php/comment-page-1#comment-1641</link>
		<dc:creator>Andrew Willis</dc:creator>
		<pubDate>Sat, 12 Feb 2011 22:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=160#comment-1641</guid>
		<description>I did a quick google to find out if I could use the foreach($array as $key=&gt;value){..} to update arrays and this was the first thing that came up...

I&#039;m traversing through a multi-dimensional JSON file as an array in PHP and one mistake would have had me spending hours fixing it!

Thankyou for saving me so much time! :)</description>
		<content:encoded><![CDATA[<p>I did a quick google to find out if I could use the foreach($array as $key=&gt;value){..} to update arrays and this was the first thing that came up&#8230;</p>
<p>I&#8217;m traversing through a multi-dimensional JSON file as an array in PHP and one mistake would have had me spending hours fixing it!</p>
<p>Thankyou for saving me so much time! <img src='http://codingrecipes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

