【发布时间】:2015-02-12 02:56:22
【问题描述】:
大家好,我在这段代码中遇到了这个错误,我在 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 类的代码吗?
标签: php fatal-error