PHP 关键词
function 关键字用于创建函数。
function
教程:PHP 函数
创建一个函数并运行它:
<?php function hello($a) { return "Hello $a!"; } echo hello("World"); ?>
亲自试一试