Sample code from Seattle PHP Meetups