Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
506 B
506 B
Parameters / Return Values
Parameters are variables listed in the function signature that receive values when the function is called. PHP passes arguments by value by default, meaning changes inside the function don't affect the original variable. Prefixing a parameter with & passes it by reference. The return statement sends a value back to the caller.
Visit the following resources to learn more: