note 90726 deleted from function.is-array by thiago

From: Date: Wed, 06 May 2009 12:09:04 +0000
Subject: note 90726 deleted from function.is-array by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154279@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- strictly speaking: array_diff_key does not pass a boolean value, so using it in a comparison might eventually be considered 'bad'. perhaps add a bit more cruft...? function is_assoc($var) { return is_array($var) AND ! empty ( array_diff_key($var,array_keys(array_keys($var)))); }

« previous php.notes (#154279) next »