note 14731 deleted from function.mysql-fetch-assoc by philip
| From: | philip@php.net | Date: | Fri, 22 Nov 2002 19:37:07 +0000 |
| Subject: | note 14731 deleted from function.mysql-fetch-assoc by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39869@lists.php.net to get a copy of this message | ||
PHP has a function that may seem helpful::
extract($row);
This will create local variables from an assoc array using the key for the var name:
$foo["bar"] = 1;
extract($foo);
echo $bar; // is 1