note 7827 deleted from array_keys by ronabop

From: Date: Wed, 13 Sep 2000 17:17:05 +0000
Subject: note 7827 deleted from array_keys by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-4844@lists.php.net to get a copy of this message
I couldn't get scott@cyberwars.com example to work, so here I modified it slightly: function array_keys ($x) { if (is_array($x)) { $i=0; while ($i<count($x)) { $y=each($x); $z[$i]=$y[0]; $i=$i+1; } return $z; } else { return FALSE; } }

« previous php.notes (#4844) next »