<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sat, 13 Jun 2026 13:53:05 +0000</lastBuildDate>
    <item>
      <title>(PHP) MySQL INSERT Query Generator w/ Strings - lemcoe9</title>
      <link>https://snipplr.com/view/66107/mysql-insert-query-generator-w-strings</link>
      <description>&lt;p&gt;Takes your table name and key=&gt;value array of values and returns the text for inserting into a MySQL database. Automatically surrounds strings with single quotes.&lt;/p&gt;</description>
      <pubDate>Fri, 13 Jul 2012 02:39:08 UTC</pubDate>
      <guid>https://snipplr.com/view/66107/mysql-insert-query-generator-w-strings</guid>
    </item>
    <item>
      <title>(PHP) List of Keys Used in MongoDB Collection - lemcoe9</title>
      <link>https://snipplr.com/view/59334/list-of-keys-used-in-mongodb-collection</link>
      <description>&lt;p&gt;Takes the collection 'david' and gives a unique array of the keys used.&lt;/p&gt;</description>
      <pubDate>Sun, 02 Oct 2011 14:42:26 UTC</pubDate>
      <guid>https://snipplr.com/view/59334/list-of-keys-used-in-mongodb-collection</guid>
    </item>
    <item>
      <title>(PHP) Insert a Key=&gt;Value at the beginning of an array - lemcoe9</title>
      <link>https://snipplr.com/view/59332/insert-a-keyvalue-at-the-beginning-of-an-array</link>
      <description>&lt;p&gt;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. &#13;
&#13;
Pretend the array is currently: array("a"=&gt;"b", "c"=&gt;"d") and you would like "x"=&gt;"z" at the beginning....&#13;
&#13;
The snippet will result in $array being: array("x"=&gt;"z", "a"=&gt;"b", "c"=&gt;"d")&lt;/p&gt;</description>
      <pubDate>Sun, 02 Oct 2011 12:24:14 UTC</pubDate>
      <guid>https://snipplr.com/view/59332/insert-a-keyvalue-at-the-beginning-of-an-array</guid>
    </item>
  </channel>
</rss>
