Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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);

?>

Documentation

See Also