In This Tutorial, we are going to learn how we can write a PHP script to find out length of the string "this is my first program"
Note :--
You can find out any of the string length by using strlen() method.
Program :-
<?php
$str1="This is my First Program";
$length=strlen($str1);
echo "<h3>Length of a String is :$length</h3>";
?>
Output :-
Comments
Post a Comment