The PHP reading for this week is chapters 5 and 6 in Progamming PHP. This is the last week of
the sort of boring basic stuff.
-Indexed vs associative arrays
-using arrays in PHP
-Sorting arrays
-Creating an object
-Object properties and methods
-Using a class
Write a transaction class that keeps track of a purchase, the date it was purchased, and the price. Then write a person class that
keeps track of the person's name, address, and a list of transactions that are stored in an array. Then create a couple of persons
(stored in an array), and add a couple of transactions to each person. Then use an HTML table to output the data that you've just created
in a sensible manner. Include the header and footer files from the previous weeks and add a link to this week's assignment in the footer
file. As always feel free to explore anything else that you find interesting!
|