Passing parameters by reference to a PHP function
It is possible to pass a variable by reference to a PHP function. Passing by reference is specified by ampersand sign in front of function's variable. If a variable is passed by reference, then value of that variable will be modified. Objects always are passed to a PHP function by reference, there is no need to specify ampersand sign.
Comments
Post a Comment