<?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: PHP array_merge &#8211; Preserving Numeric Keys</title>
	<atom:link href="http://www.vancelucas.com/blog/php-array_merge-preserving-numeric-keys/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vancelucas.com/blog/php-array_merge-preserving-numeric-keys/</link>
	<description>Web Entrepreneur and PHP5 Guru</description>
	<lastBuildDate>Wed, 06 Jan 2010 18:01:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vyacheslav</title>
		<link>http://www.vancelucas.com/blog/php-array_merge-preserving-numeric-keys/comment-page-1/#comment-461</link>
		<dc:creator>Vyacheslav</dc:creator>
		<pubDate>Tue, 08 Dec 2009 21:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.vancelucas.com/?p=267#comment-461</guid>
		<description>Saved me a lot of time. Thanks.</description>
		<content:encoded><![CDATA[<p>Saved me a lot of time. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JDB</title>
		<link>http://www.vancelucas.com/blog/php-array_merge-preserving-numeric-keys/comment-page-1/#comment-419</link>
		<dc:creator>JDB</dc:creator>
		<pubDate>Wed, 14 Oct 2009 03:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.vancelucas.com/?p=267#comment-419</guid>
		<description>Thanks so much.  This came in handy with some cakePHP.</description>
		<content:encoded><![CDATA[<p>Thanks so much.  This came in handy with some cakePHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SteveS</title>
		<link>http://www.vancelucas.com/blog/php-array_merge-preserving-numeric-keys/comment-page-1/#comment-217</link>
		<dc:creator>SteveS</dc:creator>
		<pubDate>Thu, 18 Jun 2009 02:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.vancelucas.com/?p=267#comment-217</guid>
		<description>Great tip!  Thanks a lot.

The only thing I notice is the + operator displays the opposite behaviour of array_merge.  I need to put the keys in the first array are preserved.

So for the example:

$myArr = array_merge($array1, $array2);

I would use:

$myArr = array_merge($array2, $array1);</description>
		<content:encoded><![CDATA[<p>Great tip!  Thanks a lot.</p>
<p>The only thing I notice is the + operator displays the opposite behaviour of array_merge.  I need to put the keys in the first array are preserved.</p>
<p>So for the example:</p>
<p>$myArr = array_merge($array1, $array2);</p>
<p>I would use:</p>
<p>$myArr = array_merge($array2, $array1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luke</title>
		<link>http://www.vancelucas.com/blog/php-array_merge-preserving-numeric-keys/comment-page-1/#comment-71</link>
		<dc:creator>luke</dc:creator>
		<pubDate>Tue, 06 Jan 2009 22:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.vancelucas.com/?p=267#comment-71</guid>
		<description>weird - I just ran into this same feature while doing some work on a ZF Route class. luckily the author of the base Route class I was using for inspiration had already used the + operator.</description>
		<content:encoded><![CDATA[<p>weird &#8211; I just ran into this same feature while doing some work on a ZF Route class. luckily the author of the base Route class I was using for inspiration had already used the + operator.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
