note 39389 added to function.array-values
| From: | php-general at lists dot php dot net | Date: | Tue, 27 Jan 2004 08:21:21 +0000 |
| Subject: | note 39389 added to function.array-values | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64229@lists.php.net to get a copy of this message | ||
What sucks here and I can't find a built in solution - is I have an array with numerical keys
and the column id from mysql.
[0] => first
[user] => first
[1] => last
[surname => last
When I use the array_value() function it clears the [user] and [surname] type keys. Which is
exactly what it says it will do. So then how am I to re-apply the string type keys? I would
suggest that numeric keys be removed but leave string keys assigned as they were. Just my 2cents.
----
Manual Page -- http://www.php.net/manual/en/function.array-values.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39389
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39389&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39389&report=yes
Search -- http://master.php.net/manage/user-notes.php