Skip to content

Commit

Permalink
feature #3601 Added documentation for missing ctype extension (slavaf…
Browse files Browse the repository at this point in the history
…omin)

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
  • Loading branch information
weaverryan committed Mar 13, 2014
2 parents badaae7 + 8a48434 commit 6951460
Showing 1 changed file with 32 additions and 15 deletions.
47 changes: 32 additions & 15 deletions reference/constraints/Type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,38 @@ type
This required option is the fully qualified class name or one of the PHP datatypes
as determined by PHP's ``is_`` functions.

* `array <http://php.net/is_array>`_
* `bool <http://php.net/is_bool>`_
* `callable <http://php.net/is_callable>`_
* `float <http://php.net/is_float>`_
* `double <http://php.net/is_double>`_
* `int <http://php.net/is_int>`_
* `integer <http://php.net/is_integer>`_
* `long <http://php.net/is_long>`_
* `null <http://php.net/is_null>`_
* `numeric <http://php.net/is_numeric>`_
* `object <http://php.net/is_object>`_
* `real <http://php.net/is_real>`_
* `resource <http://php.net/is_resource>`_
* `scalar <http://php.net/is_scalar>`_
* `string <http://php.net/is_string>`_
* :phpfunction:`array <is_array>`
* :phpfunction:`bool <is_bool>`
* :phpfunction:`callable <is_callable>`
* :phpfunction:`float <is_float>`
* :phpfunction:`double <is_double>`
* :phpfunction:`int <is_int>`
* :phpfunction:`integer <is_integer>`
* :phpfunction:`long <is_long>`
* :phpfunction:`null <is_null>`
* :phpfunction:`numeric <is_numeric>`
* :phpfunction:`object <is_object>`
* :phpfunction:`real <is_real>`
* :phpfunction:`resource <is_resource>`
* :phpfunction:`scalar <is_scalar>`
* :phpfunction:`string <is_string>`

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

* :phpfunction:`alnum <ctype_alnum>`
* :phpfunction:`alpha <ctype_alpha>`
* :phpfunction:`cntrl <ctype_cntrl>`
* :phpfunction:`digit <ctype_digit>`
* :phpfunction:`graph <ctype_graph>`
* :phpfunction:`lower <ctype_lower>`
* :phpfunction:`print <ctype_print>`
* :phpfunction:`punct <ctype_punct>`
* :phpfunction:`space <ctype_space>`
* :phpfunction:`upper <ctype_upper>`
* :phpfunction:`xdigit <ctype_xdigit>`

Make sure that the proper :phpfunction:`locale <setlocale>` is set before using one of these.

message
~~~~~~~
Expand Down

0 comments on commit 6951460

Please # to comment.