In PHP there are many methods of programming a script or website. Advanced programmers use something called classes. These help programmers to organize their code and also make the script more versatile.
Check it out:
http://pdstudios.net/2008/09/14/php-classes/