php - Using "&" when passing function to action hook -


i have noticed wordpress plugin classes pass class method hook using ampersand prefix.

for example:

add_action( 'somehook', array( &$this, 'some_function' ) ); 

is there specific reason so?

i understand & makes pass reference instead of instance of time see used seems irrelevant method , not object.

is there particular reason way wordpress action hooks?

it's fallback php4 objects passed values.

since wordpress requires php5.2.4 @ least, there're no reasons use & prefix anymore.