strlen
Get the string length
strlen()
function returns the length of the string.
The function returns the length of the string "Shanghai":
<?php echo strlen ( "Shanghai" ) ; ?>
Try it yourself
Returns the length of the string "I love Shanghai!":
<?php echo strlen ( "I love Shanghai!" ) ; ?>
Try it yourself
strlen ( string )
parameter | describe |
---|---|
string | Required. Specifies the string to be checked. |