This short tutorial will represent to you the most effective way of returning JSON from a PHP script.