php 5

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
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

php 5

Post by pleigh »

can't post my question to the tutorial section so forgive me if this is not the right section for my question...anyone here can point me where i can find a good tutorial of php 5, especialy the OOP part...any links to it??or advise me what book should i get...i happen to read a book, but i can hardly understand...a reference for a newbie will do..thanks in advance :) :wink:
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

You could just read any of the tutorials for OOP in PHP4, of which there are many -- Even if you have PHP5 installed you shouldn't have any issues following them... it's pretty much backward compatible.

Once you have that basic grounding you should cope fine with simply reading through the Manual at php.net to see the new features added to OOP in PHP5 and just play around yourself ;) The concepts are pretty much the same... there's just some things that have been made easier and some nice new features. There's also some new concepts (within PHP at least) to learn but they're fairly well explained in the manual (protected, private, public, constant definitons etc etc).

The other non-OOP changes are simply a few function additions, and some re-oredering of paramters in functions... nothing you could write tutorials on as such.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Best tip ever - if you have a book, do the examples. Simply reading, and not coding, makes it very difficult to connect the two.

Any entry level text for PHP is good - I'd suggest something in PHP4 since that's still the main version supported by online hosts, and the PHP Manual for the PHP5 updates. SAMS, O'Reilly, and a few others make decent starting books for new users. Enough to get you coding.

One of the quickest ways to get practical learning is to pick a fairly small and simple PHP application and just start figuring out how it works (with the PHP manual/book right next to you). That will give you some insight to how it all fits together.
Post Reply