note 10657 added to array_values
| From: | jason at spam dot ritenour dot net | Date: | Mon, 15 Jan 2001 21:45:31 +0000 |
| Subject: | note 10657 added to array_values | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9819@lists.php.net to get a copy of this message | ||
Correction to last example
function array_values ($arr) {
$t = array();
while (list($k, $v) = each ($arr)) {
$t[] = $v;
}
return $t;
}
http://www.php.net/manual/en/function.array-values.php