Forum und email

strlen

(PHP 4, PHP 5)

strlen — 문자열의 길이를 구합니다.

설명

int strlen ( string $str )

string 의 길이를 반환합니다.

Example#1 strlen() 예제

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

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

참고: count().