cvs: phpdoc-pt_BR /reference/array/functions array-search.xml

From: Date: Thu, 05 Sep 2002 22:24:57 +0000
Subject: cvs: phpdoc-pt_BR /reference/array/functions array-search.xml
Groups: php.doc.pt-br 
Request: Send a blank email to doc-pt-br+get-126@lists.php.net to get a copy of this message
lucasr Thu Sep 5 18:24:57 2002 EDT Modified files: /phpdoc-pt_BR/reference/array/functions array-search.xml Log: Making this file up-to-date Index: phpdoc-pt_BR/reference/array/functions/array-search.xml diff -u phpdoc-pt_BR/reference/array/functions/array-search.xml:1.2 phpdoc-pt_BR/reference/array/functions/array-search.xml:1.3 --- phpdoc-pt_BR/reference/array/functions/array-search.xml:1.2 Sat Apr 20 02:15:59 2002 +++ phpdoc-pt_BR/reference/array/functions/array-search.xml Thu Sep 5 18:24:57 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.2 Maintainer: lucasr Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: lucasr Status: ready --> <!-- splitted from ./pt_BR/functions/array.xml, last change in rev 1.1 --> <!-- last change to 'array-search' in en/ tree in rev 1.2 --> <refentry id="function.array-search"> @@ -11,7 +11,7 @@ </refpurpose> </refnamediv> <refsect1> - <title>Descri&ccedil;&atilde;o</title> + <title>Descrição</title> <methodsynopsis> <type>mixed</type><methodname>array_search</methodname> <methodparam><type>mixed</type><parameter>needle</parameter></methodparam> @@ -21,16 +21,22 @@ <para> Procura em <parameter>haystack</parameter> pelo valor <parameter>needle</parameter> e retorna sua chave se for encontrado no - array, &false; em caso contr&aacute;rio. + array, e &false; em caso contrário. </para> + <note> + <para> + A partir do PHP 4.2.0, <function>array_search</function> retorna + <constant>NULL</constant> em caso de falha ao invés de &false;. + </para> + </note> <para> - se o terceiro par&acirc;metro opcional <parameter>strict</parameter> for - fornecido como &true; ent&atilde;o <function>array_search</function> - tamb&eacute;m far&aacute; uma checagem de tipos de <parameter>needle</parameter> + Se o terceiro parâmetro opcional <parameter>strict</parameter> for + passado como &true; então <function>array_search</function> + também fará uma checagem de tipos de <parameter>needle</parameter> em <parameter>haystack</parameter>. </para> <para> - Veja tamb&eacute;m <function>in_array</function>. + Veja também <function>array_keys</function> e <function>in_array</function>. </para> </refsect1> </refentry>

« previous php.doc.pt-br (#126) next »