PHP strlen Function
What is strlen Function?
Explanation
In PHP, this function is used to get the length of the string.
Syntax:
strlen(string)
The above syntax returns length of the given string.
Example :
<?php
echo strlen("Hi my name is Sam Anderson.");
?>
Result :
24
In the above example the total length of the string including, whitespaces is returned.