Funções PHP |
. Glossários Funções PHP - strlen ( ) |
(PHP 3, PHP 4 , PHP 5)
strlen -- Retorna o tamanho de
uma string
int strlen ( string str)
Retorna o tamanho de string.
Exemplo:
Exemplo 1. Exemplo strlen()
<?php
$str = 'abcdef';
echo strlen($str); // 6
$str = ' ab cd ';
echo strlen($str); // 7
?>
Veja também count().