php string length : You can simply use the PHP strlen() function to get the length of a string. The strlen() function return the length of the string on success, and 0 if the string is empty.
<?Php
echo strlen('pakainfo.com');
?>
Example
<?php
echo strlen("Hello world!");
?>