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

PHP
0

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;
}
Posted by: Guest on April-08-2022

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

Browse Popular Code Answers by Language