更新时间:2023-02-18 17:03:37
strlen()
在数组上执行时返回NULL
,并发出E_WARNING
级错误.
strlen()
returnsNULL
when executed on arrays, and anE_WARNING
level error is emitted.
如果您有数组,请使用 count()
计算元素:
If you have an array, use count()
to count the elements:
if (count($value) > 0)