note 6670 deleted from array_keys by ronabop
| From: | ronabop@php.net | Date: | Wed, 13 Sep 2000 17:16:57 +0000 |
| Subject: | note 6670 deleted from array_keys by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4843@lists.php.net to get a copy of this message | ||
Below is a function that I wrote that acts the same as array_keys, but works in
PHP3:<br><br>
<pre>
function array_keys ($x) {
for($i=0;$i<count($x);$i++) {
$y=each($x);
$z[$i]=$y[0];
}
return $z;
}
</pre>