I'm developing a PHP app and I have a problem by converting a string array into an object array. I tried to force casting my string into an array by using (array), but it won't works. Here is my string (debug):
string '['method'=>'post','action'=>'#']' (length=32)
As you can see, it's a perfect array into a string and i want to convert that string.
My question is simple, does PHP has a function to convert directly a string into an array (I think no) or i have to convert my string by using explode?