note 10603 added to in_array

From: Date: Fri, 12 Jan 2001 05:52:10 +0000
Subject: note 10603 added to in_array
Groups: php.notes 
Request: Send a blank email to php-notes+get-9689@lists.php.net to get a copy of this message
I think it's more like this: $pos=array_keys($myArray,"value I'm looking for"); but yes, that is correct! I'm glad you pointed it out. (BTW, you will need to reference the result as pos[0] because PHP will store the result as an array of one element.) http://www.php.net/manual/function.in-array.php

« previous php.notes (#9689) next »