Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP 7 PDF page group - sizeof(): Parameter must be an array or an object that implements Countable

//change from
$n = sizeof($this->PageGroups) + 1;
//to
if (empty($this->PageGroups)) {
    $n = 1;
} else {
    $n = count($this->PageGroups)+1;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #PHP #PDF #page #group #Parameter #array #object #implements #Countable
ADD COMMENT
Topic
Name
3+6 =