Skip to content

Commit 8a48434

Browse files
Slava Fominweaverryan
Slava Fomin
authored andcommitted
Updated references to PHP functions
Updated references to PHP functions using syntax suggested by @wouterj (`:phpfunction:` role).
1 parent ac4c84f commit 8a48434

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

reference/constraints/Type.rst

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -96,38 +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>`
114114

115115
Also, you can use ``ctype_`` functions from corresponding `built-in PHP extension <http://php.net/book.ctype.php>`_.
116116
Consider `a list of ctype functions <http://php.net/ref.ctype.php>`_:
117117

118-
* `alnum <http://php.net/function.ctype-alnum.php>`_
119-
* `alpha <http://php.net/function.ctype-alpha.php>`_
120-
* `cntrl <http://php.net/function.ctype-cntrl.php>`_
121-
* `digit <http://php.net/function.ctype-digit.php>`_
122-
* `graph <http://php.net/function.ctype-graph.php>`_
123-
* `lower <http://php.net/function.ctype-lower.php>`_
124-
* `print <http://php.net/function.ctype-print.php>`_
125-
* `punct <http://php.net/function.ctype-punct.php>`_
126-
* `space <http://php.net/function.ctype-space.php>`_
127-
* `upper <http://php.net/function.ctype-upper.php>`_
128-
* `xdigit <http://php.net/function.ctype-xdigit.php>`_
129-
130-
Make sure that the proper `locale <http://php.net/function.setlocale.php>`_ is set before using one of these.
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.
131131

132132
message
133133
~~~~~~~

0 commit comments

Comments
 (0)