Passing by ReferenceYou can pass a variable by reference to a function so the function can modify the variable. The syntax is as follows:
<?php
The following things can be passed by reference:
No other expressions should be passed by reference, as the result is undefined. For example, the following examples of passing by reference are invalid:
<?php |