I\'m trying to load Chinese words as keys, and their English translations as values from a database into a php array so then I can use them on the client side in JavaScript.
For me the simplest way to convert php array to javascript object is to json_encode the php array then JSON.parse it from javascript like this:
"one", 2 => "two", 3 => "three"]; ?>