If I get the following text string from mysql (or whatever) how can I convert it to an actual array using PHP?
array("foo" => "bar","honey" => "pops")
I know I can save an array in a serialized state, but that’s exactly what I’m trying to avoid here.
The answer is “don’t do this”. Never put PHP code in your database. The database is for data, not code.
The correct way is to store a serialized array (not sure why you’d want to avoid that).