Use isset() Instead of strlen()
This is actually a neat trick. Here is the example: <?php if (isset($username[5])) { // The username is at least six characters long. } ?> When you treat strings as arrays, each character in the string is an element in the array. By determining whether a particular element exists, you can determine whether the string [...]

