1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-11 09:14:39 +02:00

Merge branch 'patch-4' of github.com:weakish/learnxinyminutes-docs

This commit is contained in:
Jakukyo Friel
2014-01-17 16:26:36 +08:00

View File

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