note 6671 modified in array_values by ronabop
| From: | ronabop@php.net | Date: | Fri, 08 Sep 2000 07:09:17 +0000 |
| Subject: | note 6671 modified in array_values by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4507@lists.php.net to get a copy of this message | ||
Below is a function that I wrote that acts similar to array_values, but works in
PHP3:<br><br>
<pre>
function array_values ($x) {
for($i=0;$i<count($x);$i++) {
$y=each($x);
$z[$i]=$y[1];
}
return $z;
}
</pre>
http://www.php.net/manual/function.array-values.php