How can I convert a string to an array? For instance, I have this string:
$str = \'abcdef\';
And I want to get:
array(6) {
Every String is an Array in PHP
So simply do
$str = 'abcdef'; echo $str[0].$str[1].$str[2]; // -> abc