reference/strings/functions/strlen.xml
af30c6e8acc1e90b9c4a4f44539d4215d51370ab
...
...
@@ -36,8 +36,7 @@
36
36
<refsect1 role="returnvalues">
37
37
&reftitle.returnvalues;
38
38
<para>
39
-
The length of the <parameter>string</parameter> on success,
40
-
and <literal>0</literal> if the <parameter>string</parameter> is empty.
39
+
The length of the <parameter>string</parameter> in bytes.
41
40
</para>
42
41
</refsect1>
43
42

...
...
@@ -61,11 +60,23 @@ echo strlen($str); // 7
61
60
</para>
62
61
</refsect1>
63
62

63
+
<refsect1 role="notes">
64
+
&reftitle.notes;
65
+
<note>
66
+
<para>
67
+
<function>strlen</function> returns the number of bytes rather than the number
68
+
of characters in a string.
69
+
</para>
70
+
</note>
71
+
</refsect1>
72
+

64
73
<refsect1 role="seealso">
65
74
&reftitle.seealso;
66
75
<para>
67
76
<simplelist>
68
77
<member><function>count</function></member>
78
+
<member><function>grapheme_strlen</function></member>
79
+
<member><function>iconv_strlen</function></member>
69
80
<member><function>mb_strlen</function></member>
70
81
</simplelist>
71
82
</para>
72
83