note 98842 deleted from function.is-array by danbrown

From: Date: Sat, 10 Jul 2010 13:12:03 +0000
Subject: note 98842 deleted from function.is-array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-170860@lists.php.net to get a copy of this message
Note Submitter: alex00888 at gmail dot com ---- You made a mistake and I copied it :) The write code is: <?php function is_assoc($array) { return (is_array($array) && (!count($array) || !count(array_diff_key($array, array_values($array)) ))); } ?>

« previous php.notes (#170860) next »