Count Varable character lengh


/ Published in: PHP
Save to your folder(s)

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.

URL: http://www.scopesden.co.uk/code_get_feed.php?Content_ref=14

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.