0
不支持运营商的字符串我有一些代码在WordPress
我有错误PHP致命错误:[]操作不[]在WordPress
$file1 = '';
while (false !== ($file1 = readdir($dir2))) {
if($file1 != "." && $file1 != "..") {
$files[$item][] = $file1;
}
}
支持字符串我使用的PHP 5.4的版本。有任何想法吗?
'$ files [$ item]'是一个字符串,而不是一个数组。 https://3v4l.org/GXuXg – naththedeveloper