方法一:
$str = ‘abc’;
$a =str_split($str);
perm($a, 0, count($a)-1);
functionperm(&$ar, $k, $m) {if($k == $m){
echo join(”,$ar), php_eol;
}else {
for($i=$k; $i
A programmer’s note boke for work and life
方法一:
$str = ‘abc’;
$a =str_split($str);
perm($a, 0, count($a)-1);
functionperm(&$ar, $k, $m) {if($k == $m){
echo join(”,$ar), php_eol;
}else {
for($i=$k; $i