Updated sample code to be more PHP and less Javascript :)
Merge pull request #1 from colinmutter/master

Fixed JavaScript-style object access for PHP