reference/strings/functions/strlen.xml
af30c6e8acc1e90b9c4a4f44539d4215d51370ab
...
...
@@ -36,34 +36,10 @@
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

44
-
<refsect1 role="changelog">
45
-
&reftitle.changelog;
46
-
<informaltable>
47
-
<tgroup cols="2">
48
-
<thead>
49
-
<row>
50
-
<entry>&Version;</entry>
51
-
<entry>&Description;</entry>
52
-
</row>
53
-
</thead>
54
-
<tbody>
55
-
<row>
56
-
<entry>5.3.0</entry>
57
-
<entry>
58
-
Prior versions treated arrays as the string <literal>Array</literal>, thus returning
59
-
a string length of <literal>5</literal> and emitting an <constant>E_NOTICE</constant> level error.
60
-
</entry>
61
-
</row>
62
-
</tbody>
63
-
</tgroup>
64
-
</informaltable>
65
-
</refsect1>
66
-

67
43
<refsect1 role="examples">
68
44
&reftitle.examples;
69
45
<para>
...
...
@@ -92,12 +68,6 @@ echo strlen($str); // 7
92
68
of characters in a string.
93
69
</para>
94
70
</note>
95
-
<note>
96
-
<para>
97
-
<function>strlen</function> returns &null; when executed on arrays, and
98
-
an <constant>E_WARNING</constant> level error is emitted.
99
-
</para>
100
-
</note>
101
71
</refsect1>
102
72

103
73
<refsect1 role="seealso">
104
74