Instantiate a class with or without parentheses?

Colinc

New Member
I have not found any official documentation on this. But afaik it doesn't matter whether a class is instantiated with our without the parentheses - as long as there are no parameters involved, right?\[code\]$car = new Car;\[/code\]or\[code\]$car = new Car();\[/code\]But can anyone tell me if there's a difference in performance? Which way is the 'more correct' way? Is there any official documentation for this?
 
Back
Top