1
0
mirror of https://github.com/php/doc-it.git synced 2026-03-26 16:42:06 +01:00
Files
archived-doc-it/reference/array/functions/array-search.xml
Marco Cucinato 00cc4dd850 updated revision
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@82040 c90b9560-bf6c-de11-be94-00142212c4b1
2002-05-12 22:14:11 +00:00

66 lines
2.2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/array.xml, last change in rev 1.1 -->
<!-- last change to 'array-search' in en/ tree in rev 1.2 -->
<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready -->
<!-- OLD-Revision: 1.173/EN.1.2 -->
<refentry id="function.array-search">
<refnamediv>
<refname>array_search</refname>
<refpurpose>
Ricerca un dato valore in un array e ne restituisce la
chiave corrispondente, se la ricerca ha successo.
</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
<type>mixed</type><methodname>array_search</methodname>
<methodparam><type>mixed</type><parameter>ago</parameter></methodparam>
<methodparam><type>array</type><parameter>pagliaio</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>strict</parameter></methodparam>
</methodsynopsis>
<para>
Cerca in <parameter>pagliaio</parameter> per trovare
<parameter>ago</parameter> e restituisce la chiave se viene trovato
nell'array, &false; altrimenti.
</para>
<note>
<para>
Nelle versioni di PHP antecedenti la 4.2.0, <function>array_search</function> restituisce
<constant>NULL</constant> invece di &false; in caso di fallimento.
</para>
</note>
<para>
Se il terzo parametro opzionale <parameter>strict</parameter> &egrave; impostato a
&true; la funzione <function>array_search</function>
controller&egrave; anche il tipo di <parameter>ago</parameter>
nell'array <parameter>pagliaio</parameter>.
</para>
&return.falseproblem;
<para>
Vedere anche <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
-->