<?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>Wed, 10 Jun 2026 02:46:27 +0000</lastBuildDate>
    <item>
      <title>(PHP) PHP SoftHyphens Function - DaveChild</title>
      <link>https://snipplr.com/view/19426/php-softhyphens-function</link>
      <description>&lt;p&gt;This function will add soft hyphens after every 3rd character in words of over 10 characters. It will not leave fewer than three characters following a soft hyphen.&#13;
&#13;
Known bugs: Adds soft hyphens to URLs and within HTML tags.&lt;/p&gt;</description>
      <pubDate>Wed, 09 Sep 2009 08:56:20 UTC</pubDate>
      <guid>https://snipplr.com/view/19426/php-softhyphens-function</guid>
    </item>
    <item>
      <title>(PHP) MODx Snippet: Tweet This - DaveChild</title>
      <link>https://snipplr.com/view/14118/modx-snippet-tweet-this</link>
      <description>&lt;p&gt;This snippet returns a link to twitter for the user to tweet the current page. URL is TinyURLed automatically (and tinyurls are cached indefinitely in assets/cache/tweetthis.txt).&#13;
&#13;
Simply paste code into a new snippet called "TweetThis". Call it like so:&#13;
&#13;
[[TweetThis? &amp;name=\`@DaveChild\` &amp;text=\`Tweet This!\` &amp;id=\`7\` ]]&#13;
&#13;
All parameters are optional. ID defaults to current document.&lt;/p&gt;</description>
      <pubDate>Fri, 17 Apr 2009 08:40:18 UTC</pubDate>
      <guid>https://snipplr.com/view/14118/modx-snippet-tweet-this</guid>
    </item>
    <item>
      <title>(PHP) PHP Strip Signature from Email - DaveChild</title>
      <link>https://snipplr.com/view/11598/php-strip-signature-from-email</link>
      <description>&lt;p&gt;If reading email from a POP box with PHP, you can use this to strip out signatures (ones that are delimited with the proper '--' notation). It will only strip the last signature of an email, in case someone enters a '--' intentionally elsewhere.&lt;/p&gt;</description>
      <pubDate>Wed, 28 Jan 2009 05:42:09 UTC</pubDate>
      <guid>https://snipplr.com/view/11598/php-strip-signature-from-email</guid>
    </item>
    <item>
      <title>(PHP) PHP Get First Characters of String in Complete Sentences - DaveChild</title>
      <link>https://snipplr.com/view/10426/php-get-first-characters-of-string-in-complete-sentences</link>
      <description>&lt;p&gt;Pass in text and the maximum allowable length and this snippet will return as many full sentences from the text as it can within that length. If no sentences, it will just trim to the maximum length allowed.&lt;/p&gt;</description>
      <pubDate>Fri, 12 Dec 2008 05:33:26 UTC</pubDate>
      <guid>https://snipplr.com/view/10426/php-get-first-characters-of-string-in-complete-sentences</guid>
    </item>
    <item>
      <title>(PHP) PHP Generate URL From Text - DaveChild</title>
      <link>https://snipplr.com/view/9024/php-generate-url-from-text</link>
      <description>&lt;p&gt;Function replaces all non-alpha-numeric chars and cleans up a text string. Should output a usable URL for almost all text.&lt;/p&gt;</description>
      <pubDate>Wed, 15 Oct 2008 04:29:13 UTC</pubDate>
      <guid>https://snipplr.com/view/9024/php-generate-url-from-text</guid>
    </item>
    <item>
      <title>(PHP) PHP Singleton Class - DaveChild</title>
      <link>https://snipplr.com/view/8443/php-singleton-class</link>
      <description>&lt;p&gt;Not extensively tested but should work just fine!&lt;/p&gt;</description>
      <pubDate>Wed, 17 Sep 2008 05:27:16 UTC</pubDate>
      <guid>https://snipplr.com/view/8443/php-singleton-class</guid>
    </item>
    <item>
      <title>(PHP) PHP Add and Remove Querystring Variables - DaveChild</title>
      <link>https://snipplr.com/view/8323/php-add-and-remove-querystring-variables</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 11 Sep 2008 09:54:02 UTC</pubDate>
      <guid>https://snipplr.com/view/8323/php-add-and-remove-querystring-variables</guid>
    </item>
  </channel>
</rss>
