![]() |
object declaration as class; or class();
Hi.i was reading a tutorial on PHP OOP and came across
two object declaration for same class as follows PHP Code:
but now i am confused. |
The list of arguments when instantiating an object is entirely optional so instead of providing an empty argument list [
new className()] you can provide no argument list [new className]. |
| All times are GMT. The time now is 05:27 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0