title: How to create possible combinations of strings from string in php?
body: <p>How to create possible combinations of strings from string in php</p>
  
  <p>Exp: </p>
  
  <pre><code>input = 'abc';
  output = array(
    [0]=&gt; "a"
    [1]=&gt; "ab"
    [2]=&gt; "abc"
    [3]=&gt; "ac"
    [4]=&gt; "acb"
    [5]=&gt; "b"
    [6]=&gt; "ba"
    [7]=&gt; "bac"
    [8]=&gt; "bc"
    [9]=&gt; "bca"
    [10]=&gt; "c"
    [11]=&gt; "ca"
    [12]=&gt; "cab"
    [13]=&gt; "cb"
    [14]=&gt; "cba"
  )
  </code></pre>
  
  <p>Please Help, Thanks</p>