PHP String Length
To find the string length
in PHP, use the strlen function.
See the example:
<?php
echo strlen('text');
?>
Code execution result:
4
See Also
-
lesson
array length in PHP
To find the string length
in PHP, use the strlen function.
See the example:
<?php
echo strlen('text');
?>
Code execution result:
4