How Can count the length of String in php
int strlen ( string $string )
Returns the length of the given string
Example:
<?php
$string1='Hello';
$string2='Hello World";
echo strlen($string1); //5
echo strlen($string2); //11
?>
Tutotial
How Can count the length of String in php
int strlen ( string $string )
Returns the length of the given string
Example:
<?php
$string1='Hello';
$string2='Hello World";
echo strlen($string1); //5
echo strlen($string2); //11
?>
{ 0 comments… add one now }