View Single Post
Old 11-08-2012, 08:27 PM   PM User | #1
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
Acceptable Object Instantizing

Hey there, I have another coding practice question (The PHP docs are so vague about some things). Here's what I mean:

PHP Code:

 
new Object
Assuming the class constructor doesn't want any arguments passed PHP won't complain, even in strict mode. It's nice for readability.

Is omitting the parenthesis here discouraged, just preference, or nobody knows because PHP never mentioned it?
Custard7A is offline   Reply With Quote