Bug #10546: extract() to work with objects
| From: | fabiankessler at usa dot net | Date: | Sun, 29 Apr 2001 05:06:34 +0000 |
| Subject: | Bug #10546: extract() to work with objects | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52823@lists.php.net to get a copy of this message | ||
From: fabiankessler@usa.net
Operating system: all
PHP version: 4.0.4
PHP Bug Type: Feature/Change Request
Bug description: extract() to work with objects
example:
class foo {
function foo() {
$var_array = array('hello'=>'world');
extract($var_array, EXTR_PREFIX_ALL, "this->prefix");
echo $this->prefix_hello;
}
};
$f = new foo();
:)
fab
--
Edit Bug report at: http://bugs.php.net/?id=10546&edit=1