Defining a function argument as a pointer Use the ‘&’ character in frnt of the function argument definition. That’s it, there’s no other change needed, nothing is prepended to the variable when used or the function argument when called. Array references Works just the same as for variables.
Category: Functions
If function exists
Call only if function exists
Returning Multiple Values
Return an array function my_function() { return array (0, 1, 2); } list ($value0, $value1, $value2) = my_function();
.Functions General
Function Examples Functions with optional arguments With a default array