Object-Oriented PHP 5 – just like Java

One of the best thing about PHP is how easy it is to learn.

If you come from Perl, you may have at times the feeling that “PHP is Perl for Dummies”  … as my Perl teacher liked to repeat.

If you come from Java, it is even better. PHP 5 OO concepts make it very close to Java, you can learn the few differences very quickly: the package concept in Java is replaced with namespaces in PHP, since version 5.3; the properties of an object are accessed with the awkward $this->myProperty.

Now, you can grab a book on PHP 5 objects, flip the pages and repeat: “just like Java”, “just like Java”, “just like Java.”

Leave a Reply