Parameter
A parameter is a variable in a method definition. They have a name, and may have a default value and type. They may also be passed by reference, or by value, which is the default way.
<?php
function trumpet($parameter) {}
$argument = 1;
trumpet($argument);
?>
See Also
Related
- Argument
- Static Expression
- Comma
- References
- Type System
- Variadic
- Constant Scalar Expression
- Default Value
- Inherited Variable
- New In Initializers
- Optional Parameter
- Positional Parameters
- Named Parameters
- Arbitrary Number Of Argument
- Passing By Reference
- Passing By Value
- Composite Type
- Copy On Write (COW)