Hi does anyone know how to use the function extract inside an object, so as the created variables become attributes of the object ?
a little example to be more explicit :) I have the following array: Array ( [one] => 1 [two] => 2 ) that I would like to transform into the following object stdClass Object ( [one] => 1 [two] => 2 ) any idea ? I though I could use someway the function extract, for example by using the prefix "this->" class someObj { function someObj($someArray) { extract($someArray, EXTR_PREFIX_ALL, "this->"); } } but it doesn't work ! ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php