I used Ajax call quite a lot recently and thought that knowing how to process JavaScript array and PHP arrays as JSON string is really handy. So I’d like to note it down for future reference.