<?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: Insert Into an Array at a Specific Position</title>
	<atom:link href="http://www.justin-cook.com/wp/2006/08/02/php-insert-into-an-array-at-a-specific-position/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justin-cook.com/wp/2006/08/02/php-insert-into-an-array-at-a-specific-position/</link>
	<description>A web, games, technology, programming and SEO blog by Justin Cook</description>
	<lastBuildDate>Wed, 04 Jan 2012 07:53:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: malte</title>
		<link>http://www.justin-cook.com/wp/2006/08/02/php-insert-into-an-array-at-a-specific-position/comment-page-1/#comment-156071</link>
		<dc:creator>malte</dc:creator>
		<pubDate>Wed, 14 Oct 2009 17:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.justin-cook.com/wp/2006/08/02/php-insert-into-an-array-at-a-specific-position/#comment-156071</guid>
		<description>Quote from PHP.net / splice function manual:

&quot;If replacement is just one element it is not necessary to put array() around it, unless the element is an array itself.&quot;

I do not know since when this is in PHP, but if you&#039;ve got a recent PHP version, there is no need for array($object) any longer to use as replacement. try it on your own.</description>
		<content:encoded><![CDATA[<p>Quote from PHP.net / splice function manual:</p>
<p>&#034;If replacement is just one element it is not necessary to put array() around it, unless the element is an array itself.&#034;</p>
<p>I do not know since when this is in PHP, but if you&#039;ve got a recent PHP version, there is no need for array($object) any longer to use as replacement. try it on your own.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PhpMyCoder</title>
		<link>http://www.justin-cook.com/wp/2006/08/02/php-insert-into-an-array-at-a-specific-position/comment-page-1/#comment-155930</link>
		<dc:creator>PhpMyCoder</dc:creator>
		<pubDate>Wed, 02 Sep 2009 13:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.justin-cook.com/wp/2006/08/02/php-insert-into-an-array-at-a-specific-position/#comment-155930</guid>
		<description>@stephen:
That seemed to fix my problem...very ingenious solution. I still wouldn&#039;t reply on the array_splice() function, but as long as I see no errors with this, it&#039;s a great fix!</description>
		<content:encoded><![CDATA[<p>@stephen:<br />
That seemed to fix my problem&#8230;very ingenious solution. I still wouldn&#039;t reply on the array_splice() function, but as long as I see no errors with this, it&#039;s a great fix!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PhpMyCoder</title>
		<link>http://www.justin-cook.com/wp/2006/08/02/php-insert-into-an-array-at-a-specific-position/comment-page-1/#comment-155929</link>
		<dc:creator>PhpMyCoder</dc:creator>
		<pubDate>Wed, 02 Sep 2009 13:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.justin-cook.com/wp/2006/08/02/php-insert-into-an-array-at-a-specific-position/#comment-155929</guid>
		<description>As many have said now, using array_splice() is very unreliable. If you store any complex objects in the array the array_splice() function will iterate through all the elements of the array and all of the elements for each of the objects in the array. This causes serious problems as it may insert something in the middle of a class (I just spent several days now trying to figure out why my classes were throwing errors). The array_insert() function is definitely what I would use. In fact, it would be a convenient function to have packaged with PHP.</description>
		<content:encoded><![CDATA[<p>As many have said now, using array_splice() is very unreliable. If you store any complex objects in the array the array_splice() function will iterate through all the elements of the array and all of the elements for each of the objects in the array. This causes serious problems as it may insert something in the middle of a class (I just spent several days now trying to figure out why my classes were throwing errors). The array_insert() function is definitely what I would use. In fact, it would be a convenient function to have packaged with PHP.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
