<?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 21:56:40 +0000</lastBuildDate>
    <item>
      <title>(PHP) Sub-string function based on words - finalwebsites</title>
      <link>https://snipplr.com/view/52723/substring-function-based-on-words</link>
      <description>&lt;p&gt;I need often for dynamic websites a text snippet with an extact text length. Using the PHP function substr() is a solution, but makes the last word unreadable. This tiny function takes care about the max. string length characters,  keeps the last word intact and will add a custom string to the end. This string can be some dots or maybe the link to the whole text.&lt;/p&gt;</description>
      <pubDate>Thu, 28 Apr 2011 15:57:50 UTC</pubDate>
      <guid>https://snipplr.com/view/52723/substring-function-based-on-words</guid>
    </item>
  </channel>
</rss>
