<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Count Varable character lengh'</title>
    <description>Snipplr comments feed</description>
    <link>https://ipv6.snipplr.com/</link>
    <lastBuildDate>Wed, 22 Apr 2026 19:38:53 +0000</lastBuildDate>
    <item>
      <title>kirik said on 02/Sep/2009</title>
      <link>https://ipv6.snipplr.com/view/19194/count-varable-character-lengh</link>
      <description>&lt;p&gt;Actually you should use regular expression for username validation:&#13;
`if (preg_match('/^[a-z]{8,}$/i', $username)) {&#13;
	echo 'OK';&#13;
} else {&#13;
	exit('Wrong username');&#13;
}`&lt;/p&gt;</description>
      <pubDate>Wed, 02 Sep 2009 23:52:54 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/19194/count-varable-character-lengh</guid>
    </item>
    <item>
      <title>scopefragger said on 03/Sep/2009</title>
      <link>https://ipv6.snipplr.com/view/19194/count-varable-character-lengh</link>
      <description>&lt;p&gt;true,  however when typing this i was short of examples so username lengh validation was a nice friendly introduction to strlen.  More to the point a good example of strlen would be the function that will be used in http://www.scopesden.co.uk/code_get_feed.php?Content_ref=14 to evaluate the size of the text feed and to manipulate the number of rows required so that 1,  the page isnt epic huge for a single liner code and secondly so that a 200 line code isnt squeesed into a 1 row box  (  there extreamaties but you get the point ).  Other than that thogh i havent realy used strlen.&lt;/p&gt;</description>
      <pubDate>Thu, 03 Sep 2009 04:19:11 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/19194/count-varable-character-lengh</guid>
    </item>
    <item>
      <title>scopefragger said on 03/Sep/2009</title>
      <link>https://ipv6.snipplr.com/view/19194/count-varable-character-lengh</link>
      <description>&lt;p&gt;true,  however when typing this i was short of examples so username lengh validation was a nice friendly introduction to strlen.  More to the point a good example of strlen would be the function that will be used in http://www.scopesden.co.uk/code_get_feed.php?Content_ref=14 to evaluate the size of the text feed and to manipulate the number of rows required so that 1,  the page isnt epic huge for a single liner code and secondly so that a 200 line code isnt squeesed into a 1 row box  (  there extreamaties but you get the point ).  Other than that thogh i havent realy used strlen.&lt;/p&gt;</description>
      <pubDate>Thu, 03 Sep 2009 04:19:25 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/19194/count-varable-character-lengh</guid>
    </item>
    <item>
      <title>bucabay said on 03/Sep/2009</title>
      <link>https://ipv6.snipplr.com/view/19194/count-varable-character-lengh</link>
      <description>&lt;p&gt;If you're using PHP4, using strlen() will only work for non-multibyte encoded strings. If you have a multibyte encoding such as UTF-8, then mb_strlen() should be used, or a compatible function. Almost all the PHP4 string functions suffer from this problem. &#13;
&#13;
nb: "Varable" is spelled variable.&#13;
&#13;
[Bucabay][1]&#13;
&#13;
[1]: http://www.bucabay.com/" "Bucabay"&lt;/p&gt;</description>
      <pubDate>Thu, 03 Sep 2009 09:41:00 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/19194/count-varable-character-lengh</guid>
    </item>
  </channel>
</rss>
