This commit is contained in:
Jakukyo Friel 2014-01-17 15:12:05 +08:00
parent 11f860fce6
commit f47de5a097

View File

@ -333,7 +333,7 @@ function my_function () {
echo my_function(); // => "Hello"
// 函数名需要以字母或者下划线开头,
// 后面可以跟着任意的字、下划线、数字.
// 后面可以跟着任意的字、下划线、数字.
function add ($x, $y = 1) { // $y 是可选参数,默认值为 1
$result = $x + $y;