源代码:
"Cat", "b" => "Dog", "c" => "Horse"); extract($my_array, EXTR_PREFIX_SAME, "dup"); echo "\$a = $a; \$b = $b; \$c = $c; \$dup_a = $dup_a"; ?>
运行结果:
$a = Original; $b = Dog; $c = Horse; $dup_a = Cat