• 实例首页
  • 自学教程
  • IT工具箱
xxxxxxxxxx
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>PHP 函数 实例 - 自学教程(runoops.com)</title>
6
</head>
7
<body>
8
​
9
<?php
10
function add($x,$y)
11
{
12
    $total=$x+$y;
13
    return $total;
14
}
15
 
16
echo "1 + 16 = " . add(1,16);
17
?>
18
​
19
</body>
20
​
21
</html>

© 2023 自学教程   runoops.com All Rights Reserved. 备案号:闽ICP备19010956号-1