Web Development Starts Here…

Object Oriented Programming

Class Functions in PHP

Posted by on Nov 10, 2011 in Code Snippet, Object Oriented Programming, PHP | 4 comments

Class Functions in PHP

Now in this post I am going to explain various PHP functions which will help us to get the information about the class. We can use this function in class or with the object of the class.
From the term “information about the class”, I mean about the name of the class, name of the patent class, gettting the parent class, etc.

Read More

Trait in PHP 5.4

Posted by on Nov 9, 2011 in Code Snippet, Object Oriented Programming, PHP | 8 comments

Trait in PHP 5.4

trait is the new concept introduced in PHP 5.4. Which likes to remove the limitation of the multiple inheritance in single inheritance language PHP.
Before PHP 5.4, PHP support single inheritance and multiple interface but trait is going to remove the limitation of not having multiple inheritance.

Read More

Type Hinting in PHP

Posted by on Nov 7, 2011 in Code Snippet, Object Oriented Programming, PHP | 3 comments

Type Hinting in PHP

With Type Hinting we can force the parameter of the function to be object or an array. Type Hinting was introduced in PHP 5. Also we can allow NULL also along with object or array.

Read More

Static Keyword in PHP

Posted by on Oct 31, 2011 in Code Snippet, Object Oriented Programming, PHP | 0 comments

Static Keyword in PHP

Static methos allow us to call the method of the class without creating an object of the class. So in that case we have to use scope resolution operator :: to call the static methods.

Read More

Interface in PHP

Posted by on Oct 31, 2011 in Code Snippet, Design Pattern, Object Oriented Programming, PHP | 4 comments

Interface in PHP

Interface is one the design pattern available in PHP. So from the programming point of view it will not add any additional functionality to your code but it will help up to make some standards for the code you have written.

Interface is just like a coding standard because interface allow us to create a code/class which specifies the list of methods a class must implement.

Read More

Good Bye Dennis Ritchie

Posted by on Oct 16, 2011 in Object Oriented Programming | 1 comment

Good Bye Dennis Ritchie

Dennis Ritchie has created the C programming langauge with Ken Thompson. He has also developed the UNIX Operating System which powers all things on web now a days.

Read More