如果想把函數(shù)的返回值在函數(shù)外輸出怎么辦
function position(&$maxline,&$no){
? ?$line = ceil($no / $maxline) ;
? ?$row = $no%$maxline?$no%$maxline:$maxline;
? return ?$line;
? return $row;
? ?}
?$a=4;
?$b=20;
?position( $a,$b);
如果想把函數(shù)的返回值在函數(shù)外輸出怎么辦
2018-03-22
把兩個返回值放進(jìn)一個數(shù)組,返回數(shù)組
2018-03-10
設(shè)置一個變量接收 例如 $a = function position(...){... return value;}