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 ) {

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 ) { $this-