Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法在 PHP 7.2 中访问类似 PHP 7.1 的 count 函数我需要 PHP 7.2,但 count 函数在旧版本的 PHP count() 中有效。
if(count($variable) > 0) { // some code you need }
"message": "count(): 参数必须是数组或者实现了 Countable 的对象"