Learning OOP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Ruddy
Forum Newbie
Posts: 1
Joined: Fri Sep 26, 2003 12:16 pm

Learning OOP

Post by Ruddy »

Hi,

i'm a PHP programmer but i'm new to oop, i want to know what you recomend me to study a little oop with php.

Where can i start :D

I want to learn more about class, methods...

[]'s
Ruddy
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Object Oriented Programming in PHP: The way to large PHP projects is a good article & others st:
http://www.phpcomplete.com/tutorials.ph ... tionDesign

Patterns: http://www.phppatterns.com. Patterns might not be too useful at first: I think you maybe need to muck in and write some OOP scripts before patterns really start to make sense. The factory pattern is maybe an easy one to start on - and factory recall which feels like standing between two mirrors.

eclipse http://www.students.cs.uu.nl/people/voo ... /index.php is a highly regarded example of OOP in php. Small, efficient classes are the way to go. Check out the read me for important information about how to use references with classes.

Also, have a read through the advanced forum where you'll find a few OOP topics.

Php sometimes gets criticised as not being a good OOP language: in fact, I suspect that - as in other areas - it's built-in flexibility makes it one of the best.
Post Reply