任何人都可以帮我解决这个错误吗?在我的主机上运行网站时,我没有得到任何错误,但是当我用我的电脑上的xampp运行它时,我得到这个xampp注意:未定义偏移量
注意:未定义偏移量:1在C:\ xampp1 \ htdocs \ ctcoun1kk \ countrycheck.php在273行
注意:未定义偏移:2在C:\ xampp1 \ htdocs中\ ctcoun1kk \ countrycheck.php上线273
说明:用C 3::未定义偏移\ xampp1 \ htdocs中\ ctcoun1kk \ countrycheck.php上line 273
Line 273 is this one->
$decip = ($numbers[0]*16777216)+($numbers[1]*65536)+($numbers[2]*256)+($numbers[3]);
function x_dot2dec($dotip) {
$numbers = preg_split("/./", $dotip);
$decip = ($numbers[0]*16777216)+($numbers[1]*65536)+($numbers[2]*256)+($numbers[3]);
return array ($decip, $numbers[0]);
}
谢谢你的帮助:)
$ numbers变量未初始化,需要先声明才能使用它。例如'$数= '';上面的'某处'$ decip = ...' –