mirror of
https://github.com/php/doc-fr.git
synced 2026-03-24 23:22:18 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@114768 c90b9560-bf6c-de11-be94-00142212c4b1
65 lines
2.1 KiB
XML
65 lines
2.1 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- splitted from ./fr/functions/array.xml, last change in rev 1.30 -->
|
|
<!-- last change to 'array-search' in en/ tree in rev 1.2 -->
|
|
<refentry id="function.array-search">
|
|
<refnamediv>
|
|
<refname>array_search</refname>
|
|
<refpurpose>
|
|
Recherche dans un tableau la clé associée à une valeur
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>mixed</type><methodname>array_search</methodname>
|
|
<methodparam><type>mixed</type><parameter>needle</parameter></methodparam>
|
|
<methodparam><type>array</type><parameter>haystack</parameter></methodparam>
|
|
<methodparam choice="opt"><type>bool</type><parameter>strict</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>array_search</function> recherche <parameter>needle</parameter>
|
|
dans <parameter>haystack</parameter> et retourne la clé associée s'il
|
|
la trouve, ou &false; sinon.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Avant PHP 4.2.0, <function>array_search</function> retournait
|
|
&null; em cas d'échec, au lieu de &false;.
|
|
</para>
|
|
</note>
|
|
<para>
|
|
Si le troisième paramètre <parameter>strict</parameter> vaut
|
|
&true;, alors <function>array_search</function>
|
|
s'assurera aussi que le type de <parameter>needle</parameter>
|
|
est le même que celui de la valeur trouvée dans <parameter>haystack</parameter>.
|
|
</para>
|
|
&return.falseproblem;
|
|
<para>
|
|
Voir aussi
|
|
<function>array_keys</function> et
|
|
<function>in_array</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
|
|
-->
|