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.
You can use json_encode() to make array as an json object like,
array
json object
var words = ;// don't use quotes $.each(words, function(key, value) { console.log('stuff : ' + key + ", " + value); });