Is there any good php5 OOP tutorial site?
I Googled for a while ,and
found that there are all of PHP4 OOP
site everywhere.
OOP provides a clear structure for the programs. OOP helps to keep the PHP code DRY "Don't Repeat Yourself", and makes the code easier to maintain, modify and debug. OOP makes it possible to create full reusable applications with less code and shorter development time.
There are four different types of loops supported by PHP.
Dosto mujhe ummed hai ki aap PHP Object Oriented Programming in Hindi ko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |
A class is a template for objects, and an object is an instance of class.
It's not free, but the best resource I found about PHP5 + OO in general is Matt Zandstras PHP Objects, Patterns and Practice.
It not only shows you the basics (classes v. objects, inheritance, polymorphism etc, which is where most people stop when learning OO) but it also goes through design patterns which show you how to do OO right.
By 'right' I just mean things like coding to an interface, DRY, composition over inheritance etc. Crucially, it goes over basic UML (class and sequence diagrams) which really help to give you a visual understanding of OO. Thoroughly recommended.
There are few places where you can learn about object oriented programming (OOP) in PHP:
OOP in PHP
Classes and Objects (PHP 5)
OOP in PHP5 (Warning - pdf!)
Presentation on scribd.com contrastin oop in PHP4 vs PHP5 (few other presentations are also availible on scribd.com)
php.net guide about migrattin oop from PHP4 to PHP5
There are also few books, ie: Object-Oriented Programming with PHP5
When you use google you will find many sites about this and if you really want to learn it, just buy and study one of the newer books about oop in php5 - usually they have good information, written with easy language.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With