Quantcast
Channel: User bdsl - Stack Overflow
Viewing all articles
Browse latest Browse all 38

Comment by bdsl on PHP class instantiation. To use or not to use the parentheses?

$
0
0
It's not really a function call - the constructor, if it exists, is called automatically by the system, but not directly. The return value from new is the new instance, it isn't anything returned from the constructor.

Viewing all articles
Browse latest Browse all 38

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>