I have a PHP array that looks like this
$alphabet= array('a','b','c')
$alphabet is a input i need a result like $result
Expected output:
$result= array(
[0]=> "a"
[1]=> "b"
[2]=> "c"
[3]=> "ab"
[4]=> "ac"
[5]=> "bc"
[6]=> "abc"
)
Note: here, I would not like sorting to use. Thanks!