0

我无法在 PHP 7.2 中访问类似 PHP 7.1 的 count 函数我需要 PHP 7.2,但 count 函数在旧版本的 PHP count() 中有效。

if(count($variable) > 0) {
    // some code you need
}

"message": "count(): 参数必须是数组或者实现了 Countable 的对象"

4

0 回答 0