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

原创 2019-05-29 10:21:52 313
摘要:<?php header('content-type:text/html;charset=utf-8'); echo 'hello world'.'<br>'; function numBer($int1,$int2){     $int =&nb
<?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);


批改老师:查无此人批改时间:2019-05-29 13:15:36
老师总结:完成的不错。自己写的叫方法,php系统的叫函数。继续加油。

发布手记

热门词条