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.
CommentsSubscribe to comments
You need to login to post a comment.