【发布时间】:2022-08-19 15:07:55
【问题描述】:
我需要帮助将$total 变量转换为return $seed = ( rand(\'1\',\'10\') * $seed + 5) % $this->total;。谁能帮我?
public function index()
{
$total = $this->m_soal->count_soal();
function lcm_rand($seed) {
return function() use (& $seed ) {
return $seed = ( rand(\'1\',\'10\') * $seed + 5) % $this->total;
};
}
}
-
你能添加你的完整代码吗
标签: php codeigniter error-handling