overloading in php

Method Overloading (Function Overloading) in PHP

Function overloading in PHP is not similar to other Programming language. Function overloading is also known as method overloading. Method overloading in PHP is supported by using two magic functions i) __call : This magic method gets called automatically when someone call any inaccessible method with the object. ii) __callstatic : This magic method gets(…)

Property Overloading in PHP

Overloading in PHP handled in different manner which is not similar to other programming language.With PHP overloading you can dynamically create properties and methods.These entities are processed by introducing some special methods which are known as “Magic Methods”. These magic methods are known as overloading methods in PHP. In PHP overloading done on different level(…)