functions-online

array_search

en
de
es
fr
pt

description

Searches $haystack for $needle. Returns the key for $needle if it is found in the array, FALSE otherwise.

Durchsucht $haystack nach $needle. Gibt den Schlüssel für $needle zurück, wenn es gefunden wurde, ansonsten FALSE.

Busca en el $haystack (pajar) por la $needle (aguja). Devuelve la clave de la $needle si se encuentra en el array, o FALSE de lo contrario.

Recherche $needle dans $haystack. Retourne la clé pour $needle si elle est trouvée dans le tableau, FALSE sinon.

Procura em $haystack por $needle. Retorna a chave para $needle se foi encontrada no array, FALSE caso contrário.

declaration of array_search

mixed array_search ( mixed $needle , array $haystack [, bool $strict ] )

test array_search online










comments for array_search

On 07. Dec 2010 22:26 butzi wrote:

What do you mean? Where should i improve this script?

On 07. Dec 2010 21:35 Beom wrote:

You should do this simpler, I guess

+

Leave your comment