Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any good php5 OOP tutorial site? [closed]

Tags:

oop

php

web

Is there any good php5 OOP tutorial site?

I Googled for a while ,and
found that there are all of PHP4 OOP site everywhere.

like image 222
aaa Avatar asked Jun 20 '09 12:06

aaa


People also ask

Should you use OOP in PHP?

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.

How many types of OOPS are there in PHP?

There are four different types of loops supported by PHP.

What is OOPS in PHP Hindi?

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 |

What is class in OOPS in PHP?

A class is a template for objects, and an object is an instance of class.


2 Answers

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.

like image 164
Ali Avatar answered Sep 21 '22 05:09

Ali


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.

like image 41
zeroDivisible Avatar answered Sep 19 '22 05:09

zeroDivisible