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 的对象"
我试过用谷歌搜索,但找不到设置。<?我有一个可以接受的生产服务器,<?php但我正在尝试在 WAMP 中使用该站点,但它不<?单独接受,它坚持使用<?PHP. 这是我可以在 WAMP 中设置的吗?
<?
<?php
<?PHP