Re: [PHP] ability to use extract to $this vars in a class

2005-02-09 Thread Jochem Maas
Guillermo Rauch wrote: If i understand you correctly, you want to extract all the keys and generate class members with them.. // Define class test class test { // We pass an array to the constructor function __construct( $arr ) { foreach($arr as $key = $val ) {

[PHP] ability to use extract to $this vars in a class

2005-02-08 Thread daniel
is there any way to use extract , to extract the keys from an array to $this vars for within a class ? Let me know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ability to use extract to $this vars in a class

2005-02-08 Thread Guillermo Rauch
If i understand you correctly, you want to extract all the keys and generate class members with them.. // Define class test class test { // We pass an array to the constructor function __construct( $arr ) { foreach($arr as $key = $val ) {