2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2002-04-19 15:07:14 +00:00
|
|
|
<!-- $Revision: 1.3 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<reference id="ref.ctype">
|
|
|
|
<title>Character type functions</title>
|
|
|
|
<titleabbrev>ctype</titleabbrev>
|
|
|
|
|
|
|
|
<partintro>
|
2002-04-19 15:07:14 +00:00
|
|
|
<section id="ctype.intro">
|
|
|
|
&reftitle.intro;
|
|
|
|
<para>
|
|
|
|
The functions provided by this extension check whether a character
|
|
|
|
or string falls into a certain character class according to the
|
|
|
|
current locale (see also <function>setlocale</function>).
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
When called with an integer argument these functions
|
|
|
|
behave exactly like their C counterparts from "ctype.h".
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
When called with a string argument they will check
|
|
|
|
every character in the string and will only return
|
|
|
|
&true; if every character in the string matches the
|
|
|
|
requested criteria.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Passing anything else but a string or integer will
|
|
|
|
return &false; immediately.
|
|
|
|
</para>
|
|
|
|
</section>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<section id="ctype.requirements">
|
2002-04-19 15:07:14 +00:00
|
|
|
&reftitle.required;
|
2002-04-15 00:12:54 +00:00
|
|
|
<para>
|
|
|
|
None besides functions from the standard C library which are
|
|
|
|
always available.
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="ctype.installation">
|
2002-04-19 15:07:14 +00:00
|
|
|
&reftitle.install;
|
2002-04-15 00:12:54 +00:00
|
|
|
<para>
|
|
|
|
Beginning with PHP 4.2.0 these functions are enabled by default.
|
|
|
|
For older versions you have to configure and compile PHP
|
|
|
|
with <option role="configure">--enable-ctype</option>.
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="ctype.configuration">
|
2002-04-19 15:07:14 +00:00
|
|
|
&reftitle.runtime;
|
|
|
|
&no.config;
|
2002-04-15 00:12:54 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="ctype.resources">
|
2002-04-19 15:07:14 +00:00
|
|
|
&reftitle.resources;
|
|
|
|
&no.resource;
|
2002-04-15 00:12:54 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="ctype.constants">
|
2002-04-19 15:07:14 +00:00
|
|
|
&reftitle.constants;
|
|
|
|
&no.constants;
|
2002-04-15 00:12:54 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
</partintro>
|
|
|
|
|
|
|
|
&reference.ctype.functions;
|
|
|
|
|
|
|
|
</reference>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|
|
|
|
|