如何解决PHP7.2中的此警告?
count(): Parameter must be an array or an object that implements Countable
if (is_array($variable) && count($variable) > 0) { ... }