Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The error message "Parameter must be an array or an object" in PHP 7.2's count() function means that the parameter passed to the count() function must be either an array or an object. If the parameter is not an array or an object, the count() function cannot determine the number of elements in the parameter and throws this error message.