PHP - String Functions
You want to check if a user's input stored in
$input is exactly 8 characters long. Which PHP code correctly performs this check?$input is exactly 8 characters long. Which PHP code correctly performs this check?strlen($input) returns the number of characters in the input string.strlen($input) == 8 checks if the length is exactly 8 characters.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions