How can I convert a string to an array? For instance, I have this string:
$str = \'abcdef\';
And I want to get:
array(6) {
You can loop through your string and return each character or a set of characters using substr in php. Below is a simple loop.
$str = 'abcdef'; $arr = Array(); for($i=0;$i