Possible Duplicate:
PHP: self vs this
I'm working on some code and the previous author seems to intermingle the two.
example:
class DB {
// Some functions
}
Outside the class he references it like so:
DB::somefunction();
and also like this:
$db = new DB;
$db->somefunction();
What's the difference between the two and is one better than the other?