abstrait:php 實現(xiàn)兩個整數(shù)相加的函數(shù) function add($a,$b){ return $a + $b; } echo add(1,2);
php 實現(xiàn)兩個整數(shù)相加的函數(shù) function add($a,$b){ return $a + $b; } echo add(1,2);
Professeur correcteur:查無此人Temps de correction:2019-03-25 09:05:49
Résumé du professeur:完成的不錯。函數(shù)可以還可以有很多邏輯,比如判斷傳入的值是不是數(shù)字,不是數(shù)字就返回錯誤。