Files
doc-fr/reference/strings/functions/strcasecmp.xml
Yannick Torres 4a239ae2da use more entitie
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@172818 c90b9560-bf6c-de11-be94-00142212c4b1
2004-11-16 22:07:23 +00:00

71 lines
1.9 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.12 $ -->
<!-- EN-Revision: 1.5 Maintainer: didou Status: ready -->
<refentry id="function.strcasecmp">
<refnamediv>
<refname>strcasecmp</refname>
<refpurpose>
Comparaison insensible à la casse de chaînes binaires
</refpurpose>
</refnamediv>
<refsect1>
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>strcasecmp</methodname>
<methodparam><type>string</type><parameter>str1</parameter></methodparam>
<methodparam><type>string</type><parameter>str2</parameter></methodparam>
</methodsynopsis>
<para>
<function>strcasecmp</function> retourne &lt; 0 si
<parameter>str1</parameter> est inférieure à
<parameter>str2</parameter>; &gt; 0 si <parameter>str1</parameter>
est plus grande que <parameter>str2</parameter>, et 0 si
les deux chaînes sont égales.
<example>
<title>Exemple avec <function>strcasecmp</function></title>
<programlisting role="php">
<![CDATA[
<?php
$var1 = "Hello";
$var2 = "hello";
if (strcasecmp($var1, $var2) == 0) {
echo "$var1 est égale à $var2 (comparaison insensible à la casse)";
}
?>
]]>
</programlisting>
</example>
</para>
<simpara>
Voir aussi
<function>ereg</function>,
<function>strcmp</function>,
<function>substr</function>,
<function>stristr</function>,
<function>strncasecmp</function> et
<function>strstr</function>.
</simpara>
</refsect1>
</refentry>
<!-- 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
-->