Skip to content

Commit 6951460

Browse files
committed
feature #3601 Added documentation for missing ctype extension (slavafomin)
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3601). Discussion ---------- Added documentation for missing ctype extension Commits ------- 51cfb23 Updated references to PHP functions bc439ff Fixed spelling 1d03b0e Added documentation for missing ctype extension
2 parents badaae7 + 8a48434 commit 6951460

File tree

1 file changed

+32
-15
lines changed

1 file changed

+32
-15
lines changed

reference/constraints/Type.rst

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,38 @@ type
9696
This required option is the fully qualified class name or one of the PHP datatypes
9797
as determined by PHP's ``is_`` functions.
9898

99-
* `array <http://php.net/is_array>`_
100-
* `bool <http://php.net/is_bool>`_
101-
* `callable <http://php.net/is_callable>`_
102-
* `float <http://php.net/is_float>`_
103-
* `double <http://php.net/is_double>`_
104-
* `int <http://php.net/is_int>`_
105-
* `integer <http://php.net/is_integer>`_
106-
* `long <http://php.net/is_long>`_
107-
* `null <http://php.net/is_null>`_
108-
* `numeric <http://php.net/is_numeric>`_
109-
* `object <http://php.net/is_object>`_
110-
* `real <http://php.net/is_real>`_
111-
* `resource <http://php.net/is_resource>`_
112-
* `scalar <http://php.net/is_scalar>`_
113-
* `string <http://php.net/is_string>`_
99+
* :phpfunction:`array <is_array>`
100+
* :phpfunction:`bool <is_bool>`
101+
* :phpfunction:`callable <is_callable>`
102+
* :phpfunction:`float <is_float>`
103+
* :phpfunction:`double <is_double>`
104+
* :phpfunction:`int <is_int>`
105+
* :phpfunction:`integer <is_integer>`
106+
* :phpfunction:`long <is_long>`
107+
* :phpfunction:`null <is_null>`
108+
* :phpfunction:`numeric <is_numeric>`
109+
* :phpfunction:`object <is_object>`
110+
* :phpfunction:`real <is_real>`
111+
* :phpfunction:`resource <is_resource>`
112+
* :phpfunction:`scalar <is_scalar>`
113+
* :phpfunction:`string <is_string>`
114+
115+
Also, you can use ``ctype_`` functions from corresponding `built-in PHP extension <http://php.net/book.ctype.php>`_.
116+
Consider `a list of ctype functions <http://php.net/ref.ctype.php>`_:
117+
118+
* :phpfunction:`alnum <ctype_alnum>`
119+
* :phpfunction:`alpha <ctype_alpha>`
120+
* :phpfunction:`cntrl <ctype_cntrl>`
121+
* :phpfunction:`digit <ctype_digit>`
122+
* :phpfunction:`graph <ctype_graph>`
123+
* :phpfunction:`lower <ctype_lower>`
124+
* :phpfunction:`print <ctype_print>`
125+
* :phpfunction:`punct <ctype_punct>`
126+
* :phpfunction:`space <ctype_space>`
127+
* :phpfunction:`upper <ctype_upper>`
128+
* :phpfunction:`xdigit <ctype_xdigit>`
129+
130+
Make sure that the proper :phpfunction:`locale <setlocale>` is set before using one of these.
114131

115132
message
116133
~~~~~~~

0 commit comments

Comments
 (0)