strlen()-To find the length of a string
To find the length of a string, we use a function strlen(). Let's use this function to find the length of a string.The output of the above code will be:
9Alternatively, we can write the PHP script like the way below. The output will be the same as above.
