array and string, exchange
<p>In this code:</p>

<pre><code> &lt;?php
  $string = "hello world";
  echo $string[1];          //output is 'e'
  echo end($string);        // I've got a warning error
  ?&gt;
</code></pre>

<p>How can I exchange my string variable to an array format?
I think if I exchange it the problem will solve.
Thank you.</p>
