cvs: phpdoc-fr /reference/array/functions array-key-exists.xml key-exists.xml

From: Date: Mon, 14 Oct 2002 23:03:18 +0000
Subject: cvs: phpdoc-fr /reference/array/functions array-key-exists.xml key-exists.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-89@lists.php.net to get a copy of this message
dams Mon Oct 14 19:03:18 2002 EDT Added files: /phpdoc-fr/reference/array/functions array-key-exists.xml Removed files: /phpdoc-fr/reference/array/functions key-exists.xml Log: moving key-exists to array-key-exists Index: phpdoc-fr/reference/array/functions/array-key-exists.xml +++ phpdoc-fr/reference/array/functions/array-key-exists.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./fr/functions/array.xml, last change in rev 1.44 --> <refentry id="function.array-key-exists"> <refnamediv> <refname>array_key_exists</refname> <refpurpose>V&eacute;rifie si une cl&eacute; &eacute;xiste dans un tableau</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>array_key_exists</methodname> <methodparam><type>mixed</type><parameter>key</parameter></methodparam> <methodparam><type>array</type><parameter>search</parameter></methodparam> </methodsynopsis> <para> <function>array_key_exists</function> retourne &true; s'il existe une cl&eacute; du nom de <parameter>key</parameter> dans le tableau <parameter>search</parameter>. <parameter>key</parameter> peut &ecirc;tre n'importe quelle valeur valide d'index de tableau. </para> <para> <example> <title>Exemple avec <function>array_key_exists</function></title> <programlisting role="php"> <?php $search_array = array("premier" => 1, "second" => 4); if (array_key_exists("premier", $search_array)) { echo "L'&eacute;l&eacute;ment 'premier' existe dans le tableau"; } ?> </programlisting> </example> </para> <note> <simpara> Cette fonction s'appelait <function>key_exists</function> en PHP version 4.0.6. </simpara> </note> <para> Voir aussi <function>isset</function> et <function>array_search</function>. </para> </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 -->

« previous php.doc.fr (#89) next »