<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - lemcoe9</title>
<link>http://snipplr.com/users/lemcoe9/tags/array</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 10:01:47 GMT</pubDate>
<item>
<title>(PHP) List of Keys Used in MongoDB Collection</title>
<link>http://snipplr.com/view/59334/list-of-keys-used-in-mongodb-collection/</link>
<description><![CDATA[ <p>Takes the collection 'david' and gives a unique array of the keys used.</p> ]]></description>
<pubDate>Sun, 02 Oct 2011 14:42:26 GMT</pubDate>
<guid>http://snipplr.com/view/59334/list-of-keys-used-in-mongodb-collection/</guid>
</item>
<item>
<title>(PHP) Insert a Key=>Value at the beginning of an array</title>
<link>http://snipplr.com/view/59332/insert-a-keyvalue-at-the-beginning-of-an-array/</link>
<description><![CDATA[ <p>There seems to be no easy way to insert a key and value at the beginning of an array, as array_unset does not allow you to specify a key. This is not a very efficient way to do it, but it works. 

Pretend the array is currently: array("a"=>"b", "c"=>"d") and you would like "x"=>"z" at the beginning....

The snippet will result in $array being: array("x"=>"z", "a"=>"b", "c"=>"d")</p> ]]></description>
<pubDate>Sun, 02 Oct 2011 12:24:14 GMT</pubDate>
<guid>http://snipplr.com/view/59332/insert-a-keyvalue-at-the-beginning-of-an-array/</guid>
</item>
</channel>
</rss>