Monday 9 December 2019

What does "&" mean here in PHP?

Consider this PHP code:



call_user_func(array(&$this, 'method_name'), $args);



I know it means pass-by-reference when defining functions, but is it when calling a function?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...