reference/ctype/book.xml
1af58f6311e4884398f334e8dd7c5ac5131988ba
...
...
@@ -17,17 +17,17 @@
17
17
When called with an integer argument these functions
18
18
behave exactly like their C counterparts from
19
19
<filename>ctype.h</filename>.
20
-
It means that if you pass an integer smaller than 256 it will use the
20
+
It means that if an integer smaller than 256 is passed, it will use the
21
21
ASCII value of it to see if it fits in the specified range (digits are in
22
22
0x30-0x39). If the number is between -128 and -1 inclusive then 256 will
23
23
be added and the check will be done on that.
24
24
</para>
25
+
&note.ctype.parameter.non-string;
25
26
<para>
26
27
When called with a string argument they will check
27
28
every character in the string and will only return
28
29
&true; if every character in the string matches the
29
-
requested criteria. When called with an empty string
30
-
the result will always be &true; in PHP &lt; 5.1 and &false; since 5.1.
30
+
requested criteria. &ctype.result.empty-string;
31
31
</para>
32
32
<para>
33
33
Passing anything else but a string or integer will
...
...
@@ -47,7 +47,7 @@
47
47
</para>
48
48
<para>
49
49
This extension also predates Python "ctypes" so any confusion
50
-
caused by this naming is hardly our fault ...
50
+
caused by this naming is hardly PHP's fault.
51
51
</para>
52
52
</note>
53
53
</preface>
54
54