/ Published in: PHP
![](/img/icon_sav.png?v3)
Sometimes counting the length of a variable is a necessity, such as when a new user registers. You may restrict a limit of 10 characters as a username or password, Using the following php function you can count the length of a variable.
In additionally I have provided an example ‘If’ statement that could be used in a username length validation.
In additionally I have provided an example ‘If’ statement that could be used in a username length validation.
URL: http://www.scopesden.co.uk/code_get_feed.php?Content_ref=14
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)