Richard Heyes wrote:
> Anyone interested in this patch?
> 
> 

not really, i'd use foreach and unset on the array before
extracting, far less obfuscated than the callback approach

or, if the array should not be modifiert:

function callback(&$value, $key) {
   if(preg_match('/^var/', $key)) {
     $GLOBALS[$key] = $value;
   }
}

array_walk($array,"callback");

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77

Wir stellen für Sie aus auf der CeBIT 2002 und freuen uns
in Halle 6 auf Ihren Besuch am Stand H 18


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to