javascript array can only contain numeric keys, while php array can be associative (use string as key).