strlen() function is used to count the length of a string in PHP.
You have to pass the variable name in which you have stored the string in strlen() method's parameter or string in a double quote in strlen().
<?php
$data = "Jaischool.com";
$length = strlen($data);
echo $length;
?>
Publish A Comment