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.
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.
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 MoreStatic 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 MoreInterface 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 MoreGood 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







Recent Comments