<?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 16:50:13 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) JavaScript For Loop - danielwrobert</title>
      <link>https://snipplr.com/view/46850/javascript-for-loop</link>
      <description>&lt;p&gt;I saw this useful little variation of a for loop in a tutorial by Kevin Yank at Sitepoint. By adding an additional variable "ii" in the loop's arguments, you can avoid having your program calculate the length of your array every time it loops through. Saves on processing. Delightful.&lt;/p&gt;</description>
      <pubDate>Mon, 10 Jan 2011 16:54:11 UTC</pubDate>
      <guid>https://snipplr.com/view/46850/javascript-for-loop</guid>
    </item>
    <item>
      <title>(PHP) Check your body id with PHP - danielwrobert</title>
      <link>https://snipplr.com/view/46668/check-your-body-id-with-php</link>
      <description>&lt;p&gt;Previously, I posted a little snippet I found on how to generate a special body class on each .php page. I, later, needed to get that body class and echo out a piece of HTML, which depended on my current page. So here is the snippet that I came up with. Simple, but was useful for me.&lt;/p&gt;</description>
      <pubDate>Thu, 06 Jan 2011 11:18:49 UTC</pubDate>
      <guid>https://snipplr.com/view/46668/check-your-body-id-with-php</guid>
    </item>
    <item>
      <title>(HTML) Simple HTML Redirect - danielwrobert</title>
      <link>https://snipplr.com/view/46635/simple-html-redirect</link>
      <description>&lt;p&gt;A very simple HTML redirect that I found useful for a contact form confirmation. &#13;
The number preceding the url (in this case zero) tells the browser the number of seconds to wait before redirecting to the new url. For example, you could set this to 5 and add some optional text to your page - something like:&#13;
"Please wait while we redirect you to our new site".&lt;/p&gt;</description>
      <pubDate>Thu, 06 Jan 2011 07:35:54 UTC</pubDate>
      <guid>https://snipplr.com/view/46635/simple-html-redirect</guid>
    </item>
    <item>
      <title>(PHP) Add a unique ID to to the body element with PHP - danielwrobert</title>
      <link>https://snipplr.com/view/46532/add-a-unique-id-to-to-the-body-element-with-php</link>
      <description>&lt;p&gt;From an awesome comment on how you can use PHP to apply the unique ID to to the body element. This will return the name of the PHP file being executed as the ID (e.g. body id="index.php"). To leave off the .php part, just remove the ".php" part.&lt;/p&gt;</description>
      <pubDate>Wed, 05 Jan 2011 12:30:55 UTC</pubDate>
      <guid>https://snipplr.com/view/46532/add-a-unique-id-to-to-the-body-element-with-php</guid>
    </item>
    <item>
      <title>(JavaScript) Displaying A Random Image - danielwrobert</title>
      <link>https://snipplr.com/view/45802/displaying-a-random-image</link>
      <description>&lt;p&gt;A nice little code snippet for displaying images randomly when a page is reloaded.&lt;/p&gt;</description>
      <pubDate>Thu, 16 Dec 2010 10:42:34 UTC</pubDate>
      <guid>https://snipplr.com/view/45802/displaying-a-random-image</guid>
    </item>
  </channel>
</rss>
