note 111007 deleted from function.is-array by aharvey

From: Date: Tue, 08 Jan 2013 02:57:07 +0000
Subject: note 111007 deleted from function.is-array by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192823@lists.php.net to get a copy of this message
Note Submitter: jsm at surniaulula dot com ---- Apparently, there are a lot of ways to check for an associative array -- here's my take on it. <?php $array_keys = array_keys( $var ); if ( ! is_numeric( implode( $array_keys ) ) ) echo 'associative array', "\n"; ?> Works for me. ;-) js.

« previous php.notes (#192823) next »