Connecting Tech Pros Worldwide Help | Site Map

caller has no way knowing whether the function will modify the argument?

Summercool
Guest
 
Posts: n/a
#1: Sep 27 '07
Is it true that the caller has no way to know whether the function it
is calling uses

function foo($a)

or

function foo(&$a)

so the caller never knows whether it is "pass by value" or "pass by
reference" and so won't know whether the argument can be modified or
not?

Closed Thread