函数

<?php

function sayGoodby(string $message = "Goodby!") {
    echo $message, "\n";
}

SayGoodby();
//prints "Goodby!"

SayGoodby("see you");
//prints "see you"