PHP function 关键词
定义和用法
function
关键字用于创建函数。
相关页面
教程:PHP 函数
实例
创建一个函数并运行它:
<?php
function hello($a) {
return "Hello $a!";
}
echo hello("World");
?>
function
关键字用于创建函数。
教程:PHP 函数
创建一个函数并运行它:
<?php
function hello($a) {
return "Hello $a!";
}
echo hello("World");
?>
W3School 简体中文版提供的内容仅用于培训和测试,不保证内容的正确性。通过使用本站内容随之而来的风险与本站无关。版权所有,保留一切权利。
关于 W3School 帮助 W3School 使用条款 隐私条款 技术支持:赢科 蒙 ICP 备 06004630 号