php字符串全排列

方法一:

$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

Posted in 未分类

发表评论