Posts Tagged ‘PHP overloading’

PHP overloading ( method overloading and property overloading)

PHP overloading ( method overloading and property overloading) Hello All Today I will focus on overloading method and property in PHP. Unlike other language Java/C# overloading is working in a little bit different way for PHP. Normally we can overload a method by providing different/varying argument(s) ,but in PHP it should have to create through some magic methods. These magic methods are as bellow: (For overloading property) void __set ( string $name , mixed $value ) mixed __get ( string $name ) bool __isset ( string $name...
Page 1 of 1712345NextLast »