free tutorials logo spacer
spacer
PHP
 
     
   
shaddow bottom left

Hi, My name is Yazeed and i am here to tell you about Object Oriented Programming in PHP. And i thank you for choosing to learn PHP Object Oriented Programming from my tutorial.

I wrote this tutorial as i was making the transition from PHP to Java Server Pages or JSP, a transition you don't need to make.

PHP is a very compitant Object oriented Language, i am only making the switch because i have to (for some reason irrelevant to you).

Bear in mind that this tutorial does not assume you know anything about Object Oriented Programming, but it does assume you know the basics of PHP.

So, As i started reading Java, i realised that in order to make the right decisions, i should have means of comparing both languages, This tutorial is all about Object Oriented in PHP, No Java in here.

I have been using PHP for about 5 years now, and to say the least, PHP 5 and above is a good Object Oriented Language, with very few exceptions that you can work around, it is close to a full featured Object Oriented Language.

Since this tutorial is meant to be no nonsense, and streight to the point let's get started.

1- What is Object Oriented, and why should i use it ?
2- Why Object oriented, Why Not.
3- PHP 5 , Object Oriented Building Blocks
4- Constructors, Extending the vehicle example 1
5- Inheritance, Extending the vehicle example 2
6- Public, Private and protected, Access control, Who can use what

 

Since this is a work in progress, the following are parts i wanted to write, but still, they do not snap in just yet in the Table Of Contents above

 

Roundup / Cheat Sheet

Type hinting - Restricting paramterers passed to a method by predefining acceptable types.
Object copy, Simple but not like copying variables like you are used to.
Abstract Classes : A class you can not instantiate !.
Static Methods and properties.
Constant properties.
Interfaces, outlining classes.

 



Your Name:

Subject:

Your Comment:


From: Mo
Subject: Time
When do you intend to finish the tutorial ? do you have a time table ?
From: dust
Subject: UaznrsMVGQtrXMV
3gYIko gps34JsDl901Wp4kV
From: Nbvomzxf
Subject: JhseTRUqqXBZm
Hello good day
From: Cdbrbmdl
Subject: CXNRvEGsgxRRjitKR
this post is fantastic
From: Eaggawig
Subject: LFLDoMfPtNbkpfW
i'm fine good work
From: Bbtgxxlw
Subject: IumKfvhQXCpbeHov
good material thanks
From: Bbtgxxlw
Subject: IumKfvhQXCpbeHov
good material thanks