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

Original 2019-05-29 10:21:52 217
abstract:<?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);


Correcting teacher:查无此人Correction time:2019-05-29 13:15:36
Teacher's summary:完成的不错。自己写的叫方法,php系统的叫函数。继续加油。

Release Notes

Popular Entries