Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 脚本$a[$b]=$c中未定义偏移量时出错:1_Php - Fatal编程技术网

Php 脚本$a[$b]=$c中未定义偏移量时出错:1

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

我正在努力解决这些错误

注意:第230行未定义的偏移量:1

注意:未定义索引:第231行


使用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
}