reference/mbstring/functions/mb-strlen.xml
92f1b8b177eb5730382abf9f27bae868f1bb636f
...
...
@@ -9,9 +9,9 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>mixed</type><methodname>mb_strlen</methodname>
13
-
<methodparam><type>string</type><parameter>str</parameter></methodparam>
14
-
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>mb_internal_encoding()</initializer></methodparam>
12
+
<type>int</type><methodname>mb_strlen</methodname>
13
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
14
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Gets the length of a <type>string</type>.
...
...
@@ -23,7 +23,7 @@
23
23
<para>
24
24
<variablelist>
25
25
<varlistentry>
26
-
<term><parameter>str</parameter></term>
26
+
<term><parameter>string</parameter></term>
27
27
<listitem>
28
28
<para>
29
29
The <type>string</type> being checked for length.
...
...
@@ -44,14 +44,35 @@
44
44
&reftitle.returnvalues;
45
45
<para>
46
46
Returns the number of characters in
47
-
<type>string</type> <parameter>str</parameter> having character encoding
47
+
<type>string</type> <parameter>string</parameter> having character encoding
48
48
<parameter>encoding</parameter>. A multi-byte character is
49
49
counted as 1.
50
50
</para>
51
+
</refsect1>
52
+

53
+
<refsect1 role="errors">
54
+
&reftitle.errors;
51
55
<para>
52
-
Returns &false; if the given <parameter>encoding</parameter> is invalid.
56
+
If the encoding is unknown, an error of level
57
+
<constant>E_WARNING</constant> is generated.
53
58
</para>
54
-
&return.falseproblem;
59
+
</refsect1>
60
+

61
+
<refsect1 role="changelog">
62
+
&reftitle.changelog;
63
+
<informaltable>
64
+
<tgroup cols="2">
65
+
<thead>
66
+
<row>
67
+
<entry>&Version;</entry>
68
+
<entry>&Description;</entry>
69
+
</row>
70
+
</thead>
71
+
<tbody>
72
+
&mbstring.changelog.encoding-nullable;
73
+
</tbody>
74
+
</tgroup>
75
+
</informaltable>
55
76
</refsect1>
56
77

57
78
<refsect1 role="seealso">
...
...
@@ -67,7 +88,6 @@
67
88
</refsect1>
68
89

69
90
</refentry>
70
-

71
91
<!-- Keep this comment at the end of the file
72
92
Local variables:
73
93
mode: sgml
74
94