Re: Creating a varable with a name held in a string
| From: | Randy Johnson | Date: | Fri, 11 Feb 2005 04:26:47 +0000 |
| Subject: | Re: Creating a varable with a name held in a string | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208511@lists.php.net to get a copy of this message | ||
I will read over extract and change my ways ;-)
Randy
John Holmes wrote:
Randy Johnson wrote:I like to do this: foreach( $row as $key=>$val) { $$key = $row[$key];You're just recreating a slower version of extract()...}