strlen

(PHP 3, PHP 4 , PHP 5)

strlen -- Retorna o tamanho de uma string

Descrição

int strlen ( string str )

Retorna o tamanho de string.

Exemplo 1. Exemplo strlen()

<?php
$str
= 'abcdef';
echo
strlen($str); // 6

$str = ' ab cd ';
echo
strlen($str); // 7
?>

Veja também count().