case 'UNIEK':
                                    $UNIEK = $aggregates[$i]['UNIEK'];
p($UNIEK);h1(__LINE__ . ': ' . $i);
                                    //$UNIEK = array_unique($UNIEK);
                                    $txt = count($UNIEK);
                                    break;

p= afkorting voor print_r
h1 maak een h1 tag

de array in p heeft 132 records maar de count zegt
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given

wat loopt er fout?

Jan
Jan R op 23/05/2025 09:56:48

@ozzie: omdat het helemaal niet ter zake doet. Op lijn 516 druk ik de inhoud vd array af terwijl op 518 er blijkbaar geen inhoud meer is :(

Het doet/deed ter zake, omdat de foutmelding wellicht op een andere regel betrekking had. Als jij die duidelijkheid niet verschaft, is het niet zo vreemd dat we daarnaar vragen.
Aan alle helpers: Bedankt

Reageren