我兩天,我正在嘗試解決這些錯誤, 公告:未定義抵消:1線230Errore未定義抵消:1個尼洛腳本
注意:未定義指數:上線231
$righi = file($txt);
foreach($righi as $id => $player){
list($name, $position) = explode(">", $player);
$weighted[$weights[trim($position)]] = trim($player);
我兩天,我正在嘗試解決這些錯誤, 公告:未定義抵消:1線230Errore未定義抵消:1個尼洛腳本
注意:未定義指數:上線231
$righi = file($txt);
foreach($righi as $id => $player){
list($name, $position) = explode(">", $player);
$weighted[$weights[trim($position)]] = trim($player);
$righi = file($txt);
foreach($righi as $id => $player){
list($name, $position) = explode(">", $player);
if(isset($weighted[$weights[trim($position)]])){
$weighted[$weights[trim($position)]] = trim($player); }
//sort by keys (reverse order ... descending)
krsort($weighted);
//overwrite original file
file_put_contents($txt, $comment . implode(PHP_EOL, $weighted));
?>
解析錯誤:語法錯誤,對意外的文件結束行240
請使用英文 – OldPadawan