Php 脚本$a[$b]=$c中未定义偏移量时出错:1
我正在努力解决这些错误 注意:第230行未定义的偏移量:1 注意:未定义索引:第231行Php 脚本$a[$b]=$c中未定义偏移量时出错:1,php,Php,我正在努力解决这些错误 注意:第230行未定义的偏移量:1 注意:未定义索引:第231行 使用isset,例如: if(isset($weighted[$weights[trim($position)]])){ // your code } 请使用英语谢谢,但是在我需要输入你建议的函数的地方,我是非常非常不切实际的php,请耐心等待,谢谢。如果(isset($weighted[$weights[trim($position)]){$weighted[$weights[trim($pos
使用isset,例如:
if(isset($weighted[$weights[trim($position)]])){
// your code
}
请使用英语谢谢,但是在我需要输入你建议的函数的地方,我是非常非常不切实际的php,请耐心等待,谢谢。如果(isset($weighted[$weights[trim($position)]){$weighted[$weights[trim($position)]=trim($player);}
if(isset($weighted[$weights[trim($position)]])){
// your code
}