mirror of
https://github.com/php/doc-de.git
synced 2026-03-26 16:22:10 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@110665 c90b9560-bf6c-de11-be94-00142212c4b1
64 lines
2.0 KiB
XML
64 lines
2.0 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<!-- EN-Revision: 1.4 Maintainer: tom Status: ready -->
|
|
<refentry id="function.array-search">
|
|
<refnamediv>
|
|
<refname>array_search</refname>
|
|
<refpurpose>
|
|
Durchsucht ein Array nach einem Wert liefert bei Erfolg den
|
|
Schlüssel
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Beschreibung</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>
|
|
Diese Funktion durchsucht <parameter>haystack</parameter> nach
|
|
<parameter>needle</parameter> und gibt bei Erfolg den Schlüssel
|
|
zurück, andernfalls &false;.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Vor PHP 4.2.0 gibt <function>array_search</function> im Fehlerfall
|
|
<constant>NULL</constant> statt &false; zurück.
|
|
</para>
|
|
</note>
|
|
<para>
|
|
Ist der optionale dritte Parameter <parameter>strict</parameter>
|
|
auf &true; gesetzt, prüft <function>array_search</function>
|
|
auch die Typen von <parameter>needle</parameter> in
|
|
<parameter>haystack</parameter>.
|
|
</para>
|
|
&return.falseproblem;
|
|
<para>
|
|
Siehe auch <function>array_keys</function> und <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
|
|
-->
|