如何在PHP如何在PHP中從字符串創建可能的字符串組合?
精通創建串串的可能的組合:
input = 'abc';
output = array(
[0]=> "a"
[1]=> "ab"
[2]=> "abc"
[3]=> "ac"
[4]=> "acb"
[5]=> "b"
[6]=> "ba"
[7]=> "bac"
[8]=> "bc"
[9]=> "bca"
[10]=> "c"
[11]=> "ca"
[12]=> "cab"
[13]=> "cb"
[14]=> "cba"
)
請幫幫忙,謝謝
可能重複(http://stackoverflow.com/questions/12160843/generate-all-possible-combinations-使用-A-設定的串) – Rikesh