可以做到吗?
function my_function(&$array){
// processing $array here
extract($array); // create variables but not here
}
function B(){
$some_array = array('var1' => 23423, 'var2' => 'foo');
my_function($some_array);
// here I want to have $var, $var2 (what extract produced in my function)
}
例如 parse_str() 能够做到这一点。