String from database to assosiate array in PHP?

Rajendra

New member
How to convert a string retrieved from database to an assosiate array in PHP.
Eg.: $st="array('country'=>'in', 'state'=>'mp')";

Need to convert this $st string to an array $arr,
so that I should be able to access $arr["country"], $arr["state"]

Thanks.
 
Back
Top