note 14935 deleted from function.in-array by jimw

From: Date: Fri, 07 Dec 2001 21:08:10 +0000
Subject: note 14935 deleted from function.in-array by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21977@lists.php.net to get a copy of this message
in_array chokes on arrays-of-arrays. IE: $arr = array(array(1,2), array(3,4)); $key = array(1,2); $q = in_array($key, $arr); dies with 'wrong datatype for arg 1', which is silly.

« previous php.notes (#21977) next »