[Request] PHP 4 to PHP 5 Class Tutorial?

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
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

[Request] PHP 4 to PHP 5 Class Tutorial?

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

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

Post 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.
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

Post 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.
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

Post by DaveTheAve »

Found one very helpful site http://www.phpfive.net/article4.htm
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

"Upgrading To PHP5" is a very good book. It covers a lot more than just the objects stuff.
Post Reply