<?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 08:06:58 +0000</lastBuildDate>
    <item>
      <title>(PHP) strstr() and stristr() with Arrays - engel</title>
      <link>https://snipplr.com/view/4435/strstr-and-stristr-with-arrays</link>
      <description>&lt;p&gt;Searches an array $haystack for $needle. Returns the value of the element which contains the first result. Use strstr_array() for case-sensitive searches and stristr_array() for case-insensitive searches.&lt;/p&gt;</description>
      <pubDate>Sun, 30 Dec 2007 18:32:19 UTC</pubDate>
      <guid>https://snipplr.com/view/4435/strstr-and-stristr-with-arrays</guid>
    </item>
    <item>
      <title>(Bash) Append Line to a File - engel</title>
      <link>https://snipplr.com/view/4212/append-line-to-a-file</link>
      <description>&lt;p&gt;Running this command will append a line with given values to a file you specify. Replace words between &lt; and &gt; with the values you desire.&lt;/p&gt;</description>
      <pubDate>Wed, 28 Nov 2007 19:55:15 UTC</pubDate>
      <guid>https://snipplr.com/view/4212/append-line-to-a-file</guid>
    </item>
    <item>
      <title>(PHP) Programming Notes - engel</title>
      <link>https://snipplr.com/view/4209/programming-notes</link>
      <description>&lt;p&gt;Here are some commonly-used notes given in PHP sources, especially in multi-developer projects. They are used to note various things, such as things to improve and bugs at that line.&lt;/p&gt;</description>
      <pubDate>Wed, 28 Nov 2007 19:19:15 UTC</pubDate>
      <guid>https://snipplr.com/view/4209/programming-notes</guid>
    </item>
    <item>
      <title>(PHP) Function Template - engel</title>
      <link>https://snipplr.com/view/4206/function-template</link>
      <description>&lt;p&gt;Add this template before functions in a library, in order to give a good description of what it is and what it does. Replace all in &lt; and &gt; with your values.&lt;/p&gt;</description>
      <pubDate>Wed, 28 Nov 2007 09:33:03 UTC</pubDate>
      <guid>https://snipplr.com/view/4206/function-template</guid>
    </item>
    <item>
      <title>(PHP) Prevent SQL Injection - engel</title>
      <link>https://snipplr.com/view/4205/prevent-sql-injection</link>
      <description>&lt;p&gt;Pass a user-inputted variable to this function in order to prevent SQL injection. Example:&#13;
&#13;
mysql_query("INSERT INTO table VALUES('" . sql_sanitize($_POST["variable") . "')");&#13;
&#13;
Instead of:&#13;
&#13;
mysql_query("INSERT INTO table VALUES('" . $_POST["variable"] . "'");&lt;/p&gt;</description>
      <pubDate>Wed, 28 Nov 2007 09:25:01 UTC</pubDate>
      <guid>https://snipplr.com/view/4205/prevent-sql-injection</guid>
    </item>
  </channel>
</rss>
