1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<reference id="ref.ctype">
<title>Caractères</title>
<titleabbrev>ctype</titleabbrev>
<partintro>
<para>
Ces fonctions vérifient si un caractère ou une chaîne
de caractères font partie d'une certaine classe de
caractères, en fonction de la configuration locale.
</para>
<para>
Appelée avec un argument de type entier, ces fonctions
se comportent exactement comme le équivalent en langage C.
</para>
<para>
Appelée avec un argument de type chaîne, elles vérifieront
chaque caractère de la chaîne, et ne retourneront
<literal>TRUE</literal> que si chaque caractère
de la chaîne satisfait les critères requis.
</para>
<para>
Tout autre type d'argument (autre que chaîne ou entier)
génère une erreur, et retourne <literal>FALSE</literal>
immédiatement.
</para>
<warning>
<simpara>
Ces fonctions ont été ajoutée en PHP 4.0.4, et leur nom peut
changer dans un futur proche. Les suggestions actuelles sont :
<literal>ctype_issomething()</literal> au lieu de
<literal>ctype_somthing</literal> ou encore d'en faire une partie
<filename>ext/standard</filename> et utiliser ainsi leur
nom en langage C, même si cela peut conduire à des confusions
entre <function>isset</function> et <literal>is_sometype</literal>.
</simpara>
</warning>
</partintro>
<refentry id="function.ctype-alnum">
<refnamediv>
<refname>ctype_alnum</refname>
<refpurpose>
Vérifie qu'un caractère est alpha-numérique
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_alnum</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
Voir aussi <function>setlocale</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.ctype-alpha">
<refnamediv>
<refname>ctype_alpha</refname>
<refpurpose>
Vérifie qu'un caractère est alphabétique
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_alpha</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
</para>
</refsect1>
</refentry>
<refentry id="function.ctype-cntrl">
<refnamediv>
<refname>ctype_cntrl</refname>
<refpurpose>
Vérifie qu'un caractère est un caractère de contrôle
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_cntrl</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
</para>
</refsect1>
</refentry>
<refentry id="function.ctype-digit">
<refnamediv>
<refname>ctype_digit</refname>
<refpurpose>Vérifie qu'un caractère est numérique</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_digit</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
</para>
</refsect1>
</refentry>
<refentry id="function.ctype-lower">
<refnamediv>
<refname>ctype_lower</refname>
<refpurpose>Vérifie qu'un caractère est en minuscule</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_lower</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
</para>
</refsect1>
</refentry>
<refentry id="function.ctype-graph">
<refnamediv>
<refname>ctype_graph</refname>
<refpurpose>
Vérifie qu'un caractère est imprimable (sauf " ", espace)
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_graph</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
</para>
</refsect1>
</refentry>
<refentry id="function.ctype-print">
<refnamediv>
<refname>ctype_print</refname>
<refpurpose>Vérifie qu'un caractère est imprimable</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_print</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
</para>
</refsect1>
</refentry>
<refentry id="function.ctype-punct">
<refnamediv>
<refname>ctype_punct</refname>
<refpurpose>
Vérifie qu'un caractère est imprimable, sans être ni un espace,
ni un caractère alpha-numérique
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_punct</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
</para>
</refsect1>
</refentry>
<refentry id="function.ctype-space">
<refnamediv>
<refname>ctype_space</refname>
<refpurpose>
Vérifie qu'un caractère est caractère blanc (espace, tabulation...)
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_space</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
</para>
</refsect1>
</refentry>
<refentry id="function.ctype-upper">
<refnamediv>
<refname>ctype_upper</refname>
<refpurpose>Vérifie qu'un caractère est en majuscule</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_upper</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
</para>
</refsect1>
</refentry>
<refentry id="function.ctype-xdigit">
<refnamediv>
<refname>ctype_xdigit</refname>
<refpurpose>
Vérifie qu'un caractère représente un nombre
héxadécimal
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>boolean</type><methodname>ctype_xdigit</methodname>
<methodparam><type>string</type><parameter>c</parameter></methodparam>
</methodsynopsis>
<para>
</para>
</refsect1>
</refentry>
</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:
-->
|