<?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>Tue, 09 Jun 2026 17:52:18 +0000</lastBuildDate>
    <item>
      <title>(PHP) recursive array_map for php4 - micmath</title>
      <link>https://snipplr.com/view/4387/recursive-arraymap-for-php4</link>
      <description>&lt;p&gt;in php5 use array_walk_recursive&lt;/p&gt;</description>
      <pubDate>Thu, 20 Dec 2007 06:39:10 UTC</pubDate>
      <guid>https://snipplr.com/view/4387/recursive-arraymap-for-php4</guid>
    </item>
    <item>
      <title>(PHP) Treat variable as a file - micmath</title>
      <link>https://snipplr.com/view/4051/treat-variable-as-a-file</link>
      <description>&lt;p&gt;Occasionally you'll have a string and need to pass it to a function that will only take a filehandle (such as fgetcsv). Here's how to create a virtual filehandle in memory.&lt;/p&gt;</description>
      <pubDate>Tue, 30 Oct 2007 18:58:45 UTC</pubDate>
      <guid>https://snipplr.com/view/4051/treat-variable-as-a-file</guid>
    </item>
    <item>
      <title>(PHP) Serve .php files as PHP5 - micmath</title>
      <link>https://snipplr.com/view/3900/serve-php-files-as-php5</link>
      <description>&lt;p&gt;Add this to the .htaccess file in any directory which contains the .php file. Note that you can change ".php" in this snippet to other things, like ".html" or ".php5"&lt;/p&gt;</description>
      <pubDate>Mon, 15 Oct 2007 16:33:18 UTC</pubDate>
      <guid>https://snipplr.com/view/3900/serve-php-files-as-php5</guid>
    </item>
    <item>
      <title>(PHP) Dealing with sparse arrays - micmath</title>
      <link>https://snipplr.com/view/3803/dealing-with-sparse-arrays</link>
      <description>&lt;p&gt;This snippet assumes you want to walk the numbered array items only, as you would with a normal for loop, but a for loop up to count($array) won't work with a sparse array because the highest array index will always be higher than the array count.&lt;/p&gt;</description>
      <pubDate>Sat, 29 Sep 2007 11:58:44 UTC</pubDate>
      <guid>https://snipplr.com/view/3803/dealing-with-sparse-arrays</guid>
    </item>
    <item>
      <title>(PHP) PHP smarty sticky form value - micmath</title>
      <link>https://snipplr.com/view/3544/php-smarty-sticky-form-value</link>
      <description>&lt;p&gt;To avoid script injection attacks an input value requires proper escaping.&lt;/p&gt;</description>
      <pubDate>Tue, 21 Aug 2007 08:45:59 UTC</pubDate>
      <guid>https://snipplr.com/view/3544/php-smarty-sticky-form-value</guid>
    </item>
    <item>
      <title>(PHP) Dump a variable to a string. - micmath</title>
      <link>https://snipplr.com/view/3449/dump-a-variable-to-a-string</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 05 Aug 2007 03:53:50 UTC</pubDate>
      <guid>https://snipplr.com/view/3449/dump-a-variable-to-a-string</guid>
    </item>
  </channel>
</rss>
