title: PHP convert string to array
body: <p>How can I convert a string to an array? For instance, I have this string:</p>
  
  <pre><code>$str = 'abcdef';
  </code></pre>
  
  <p>And I want to get:</p>
  
  <pre><code>array(6) {
    [0]=&gt;
    string(1) "a"
    [1]=&gt;
    string(1) "b"
    [2]=&gt;
    string(1) "c"
    [3]=&gt;
    string(1) "d"
    [4]=&gt;
    string(1) "e"
    [5]=&gt;
    string(1) "f"
  }
  </code></pre>