英 [le?θ]? ?美 [le?θ]??

n.長度,長;時間的長短;(語)音長;一段,一節(jié)

復(fù)數(shù): lengths

php strlen()函數(shù) 語法

作用:返回字符串的長度

語法:strlen(string)

參數(shù):

參數(shù)描述
string必需。規(guī)定要檢查的字符串。? ??

說明:返回字符串的長度。

php strlen()函數(shù) 示例

<?php
echo strlen("I love php!");
?>

運行實例 ?

點擊 "運行實例" 按鈕查看在線實例

輸出:

11
<?php
echo strlen("i study php at php.cn");
?>

運行實例 ?

點擊 "運行實例" 按鈕查看在線實例

輸出:

21