-1
嗨,大家好,我得到这个代码的错误,我有这个功能的类Markets.php致命错误:无法使用类型泊松的对象数组
public function getUnder($line){
$under = 0;
for($i=0; $i<= floor($line) ;$i++){
for ($j=0; $j<= (floor($line) - $i);$j++){
$under = $under + $this->poisson_tab[$i][$j];
}
}
return $under;
}
我试图使用它像这样:
$get_markets = new Markets($tab_poisson);
echo "Under 2.5 -> ".(1/$get_markets->getUnder(2.5))."</br>";
你能展示Markets类的代码吗? – 2015-02-12 03:08:44