Page 1 of 1

[Request] PHP 4 to PHP 5 Class Tutorial?

Posted: Wed Nov 01, 2006 7:23 am
by DaveTheAve
Hello Fellow DevNet programmers,
I'm wishing to learn the ways of PHP 5's new class system; I was hoping there was a better/clearer tutorial out there then the PHP Manual. For the record I know how to program classes in PHP 4 quite well. (Ex: As shown Here) I wish to learn such things as the static/protected/public variables and functions, Object Interfaces, Autoloading Objects, Scope Resolution Operator, Class Abstraction, Overloading, etc. Is there any tutorial or article that you know of that clearly explains this so I can start programming classes in PHP 5?

Re: [Request] PHP 4 to PHP 5 Class Tutorial?

Posted: Wed Nov 01, 2006 7:28 am
by Chris Corbyn
DaveTheAve wrote:Hello Fellow DevNet programmers,
I'm wishing to learn the ways of PHP 5's new class system; I was hoping there was a better/clearer tutorial out there then the PHP Manual. For the record I know how to program classes in PHP 4 quite well. (Ex: As shown Here) I wish to learn such things as the static/protected/public variables and functions, Object Interfaces, Autoloading Objects, Scope Resolution Operator, Class Abstraction, Overloading, etc. Is there any tutorial or article that you know of that clearly explains this so I can start programming classes in PHP 5?
I'd be tempted to just research some design patterns which make use of PHP5. Read the user comments in the manual too. It's a bit general to just ask for a tutorial for "programming classes in PHP5". OOP is a huge arena to step into; you just need to learn as you go.

Posted: Wed Nov 01, 2006 7:46 am
by DaveTheAve
Yeah, I understand that completely. Though, the comments on the manual do help, I guess the best way to learn is though trail and error.

Posted: Wed Nov 01, 2006 7:56 am
by DaveTheAve
Found one very helpful site http://www.phpfive.net/article4.htm

Posted: Wed Nov 01, 2006 9:17 am
by onion2k
"Upgrading To PHP5" is a very good book. It covers a lot more than just the objects stuff.