i want change string to array
this is my string
$str = '[1]=Array("-","x","1","4","r, 2x","2x2","x3");';
how to change to array?
$str = '[1]=Array("-","x","1","4","r, 2x","2x2","x3");';
|
|
|
$string = '[1]=Array("-","x","1","4","r, 2x","2x2","x3");';
$array = array();
eval("\$array$string");
print_r($array[1]);
abc[1]=Array(91821,"John","2009-02-17",287,"0401");This is my javascript code
0 members, 1 guests, 0 anonymous users