<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'startsWith / hasPrefix'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sun, 03 May 2026 21:14:33 +0000</lastBuildDate>
    <item>
      <title>Vordreller said on 27/May/2009</title>
      <link>https://snipplr.com/view/15336/startswith--hasprefix</link>
      <description>&lt;p&gt;Nice one.&#13;
&#13;
Check this implementation here on Snipplr, which I wrote: [startsWith()][1]&#13;
&#13;
And if you wanna do it with the end of a string, I don't think you can use strpos(), check this implementation, which is also written by me: [endsWith()][2]&#13;
&#13;
Which is the exact reason I didn't use it for the startswith() function either.&#13;
&#13;
  [1]: http://snipplr.com/view/13214/check-if-a-string-begins-with-another-string/&#13;
  [2]: http://snipplr.com/view/13213/check-if-a-string-ends-with-another-string/&lt;/p&gt;</description>
      <pubDate>Wed, 27 May 2009 03:04:55 UTC</pubDate>
      <guid>https://snipplr.com/view/15336/startswith--hasprefix</guid>
    </item>
  </channel>
</rss>
