Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/419.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/330.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
Javascript 致命错误:cpvlap统计数据不支持操作数类型_Javascript_Java_C#_Arrays_Performance - Fatal编程技术网

Javascript 致命错误:cpvlap统计数据不支持操作数类型

Javascript 致命错误:cpvlap统计数据不支持操作数类型,javascript,java,c#,arrays,performance,Javascript,Java,C#,Arrays,Performance,我在error stats文件中发现了这个错误 Fatal error: Unsupported operand types in /home1/bestdail/public_html/cpvlap/cpv_lab_install_files/stats.php on line 338 这是338排 $totalsRow[0] += $columnsForTotals[$j] = $reportLines[$i][$columnsForTotals[$j]]; 在这一行中,您提到您必须完成

我在error stats文件中发现了这个错误

Fatal error: Unsupported operand types in /home1/bestdail/public_html/cpvlap/cpv_lab_install_files/stats.php on line 338
这是338排

$totalsRow[0] += $columnsForTotals[$j] = $reportLines[$i][$columnsForTotals[$j]];

在这一行中,您提到您必须完成不正确的作业:

$totalsRow[0] += $columnsForTotals[$j] = $reportLines[$i][$columnsForTotals[$j]];
你会注意到你是这样说的:

 $totalsRow[0] = $totalsRow[0] + $columnsForTotals[$j] = $reportLines[$i][$columnsForTotals[$j]];

这就是抛出错误的原因,所以你需要找出在这一行中你到底想做什么,并且只有一个作业。所以修好那条线,我想你会没事的。还请记住,由于我们不知道这些变量是什么,请确保
$columnsForTotals[$j]]
返回一个int,因为您使用它作为数组的索引。

您的问题是什么?