writing csv data

Create a new file named address_book.php in your codeup.dev public
folder and open it file for editing. Commit changes and push to GitHub
for each step.

Much like the address book in our example, you'll be creating an
address book application that stores entries in a CSV file on your
computer. In the same fashion as your todo.php application, you will
want to display your entries at the top of the page, and have a form
below for adding new entries. Each entry should take a name, address,
city, state, zip, and phone. You can use a HTML table or definition
lists for displaying the addresses.

Create a function to store a new entry. A new entry should have
validate 5 required fields: name, address, city, state, and zip.
Display error if each is not filled out.

Use a CSV file to save to your list after each valid entry.