📅  最后修改于: 2022-03-11 14:54:52.708000             🧑  作者: Mango
代码示例1
function sayHello(?string $name) {
echo "Hello " . $name . PHP_EOL;
}
sayHello(null); // Hello
sayHello("John"); //Hello John