Calculating the length of a string using PHP

The PHP function strlen can be used to find out how many characters are in a string. This is very useful for validating that there’s data in a string, and that a string isn’t larger than it should be.

Our Password Code will Return: Password accepted

Share This Post

Post Comment