note 60790 deleted from function.list by bjori
| From: | bjori@php.net | Date: | Mon, 27 Mar 2006 14:08:34 +0000 |
| Subject: | note 60790 deleted from function.list by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106765@lists.php.net to get a copy of this message | ||
Note Submitter: Zain
----
extract is a better option.
e.g. $row = mysql_fetch_assoc($result);
and this returns
$row['firstname'];
$row['lastname'];
$row['id'];
now using extract can be handy here..........
extract($row);
and then u can use
echo $firstname;
echo $lastname;
echo $id;
i.e. array keys will become variables and keys' values the vlaues of the variables