$v) { $$k = &$arg[$k]; } $a++; } $counter = 1; x(array('a' => &$counter)); echo "$counter\n";