note 7360 deleted from list by ronabop
| From: | ronabop@php.net | Date: | Thu, 31 Aug 2000 05:34:24 +0000 |
| Subject: | note 7360 deleted from list by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3730@lists.php.net to get a copy of this message | ||
Is that had any easy way to convert the value in assocative array to a new var. that the name is its
key? Like:
/* $array = $mysql_fetch_array($handler, MYSQL_ASSOC); */<br>
And want every val assigned to its key, <br>
$col1=$array['col1']; /*a new var named $col1 with value
$array['col1']*/<br>
I tried use while...each and list to do, but both no work <br>
Thx a lot.