In this chapter, the basics of PHP as it pertains to Ajax were introduced. You saw how to write PHP pages and how to use its basic syntax. You worked with PHP operators, if statements, and elseif statements. You also saw how to work with loops in PHP, and how to read data sent from the server. And you also saw how to work with data structures like arrays.