An article I wrote titled “Creating a Shopping Cart Class using Object-Oriented Programming in PHP” was just published online by Peachpit Press. This article, which goes nicely with my “Advanced PHP and Object-Oriented Programming: Visual QuickPro Guide” book, explains how to use more recent features of PHP, such as the Standard PHP Library (SPL), to create a great, reusable shopping cart system. Just two classes will give you all the functionality you need!