Exercise : Address Book, Server-Side (by Alex Miller)

screenshot

Write the PHP code to manage an address book using JSON. You are given the HTML and JS. The JS code sends requests to your addressbook.php web service that reads and saves address data. (sample solution) (solution) Write the PHP file, addressbook.php, that provides the following behavior:

You may assume that any necessary parameters are passed and are in valid formats.