返回写一个函数传参......登陆

写一个函数传参实现两个整数相加的函数

Jmmmm2019-05-29 10:21:52216
<?php

header('content-type:text/html;charset=utf-8');
echo 'hello world'.'<br>';


function numBer($int1,$int2){
    $int = $int1 + $int2;
    return '相加的整数值为:'.$int;
}

echo numBer(13,5);


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送