变量x与变量y的和

Original 2019-05-08 18:17:07 338
abstract:<?phpfunction numberx($x){    return $x;}function numbery($y){return $y;}function numberz($x,$y){return $x+$y;}echo numberz(numbery(10),numberx(20));/>这些代码是我在交流群里问到的,我自己写的不对,

<?php

function numberx($x)

{

    return $x;

}

function numbery($y)

{

return $y;

}

function numberz($x,$y)

{

return $x+$y;

}

echo numberz(numbery(10),numberx(20));

/>

这些代码是我在交流群里问到的,我自己写的不对,其中numberx和numbery的意思我懂,但是不懂的numberz的意思以及最后输出为什么要在numberx与numbery后面分别加上数字,请老师解释下

Correcting teacher:查无此人Correction time:2019-05-09 14:16:14
Teacher's summary:你的echo ,是输出三个方法。 外面的方法,有两个传值。 两个传值,分别使用了方法执行后的返回值。继续加油吧。不懂提交工单。

Release Notes

Popular Entries