Re: setting $var= multiple $var's
| From: | CC Zona | Date: | Thu, 29 Mar 2001 03:06:15 +0000 |
| Subject: | Re: setting $var= multiple $var's | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45993@lists.php.net to get a copy of this message | ||
In article <NFBBJNAGDIPHLCGPBLKDEEMNCBAA.peterh@sunrentals.com.au>,
peterh@vfsa.com.au ("Peter Houchin") wrote:
> What is the best way to get set this to one value?
>
> $system=$myrow['system'];
> $serial=$myrow['serial'];
> $config"=$myrow['config'];
<snip much more of the same>
extract($myrow);
Done. :-)
See <http://www.php.net/extract/> for more info.
--
CC