title: how to convert strings to array in php without using explode function
body: <p>I want to convert strings to array without using explode function in php
     I want output something like this <code>( [0] =&gt; 1 [1] =&gt; 2 [2] =&gt; 3 [3] =&gt; 4 [4] =&gt; 5 )</code> but without using explode(). </p>
  
  <pre><code>    &lt;?php
  
       $str="this is string"; 
  
      ?&gt;
  </code></pre>
  
  <p>should be like this <code>arr[0]=this arr[1]=is arr[2]=string</code></p>