Warning: count (): Parameter must be an array or an object that implements Countable in C: \ xampp \ htdocs \ MAINTENANCE AND SERVICES R.M S.A.S \ pdf_class \ locale.class.php on line 68
Warning: count (): Parameter must be an array or an object that implements Countable in C: \ xampp \ htdocs \ MAINTENANCE AND SERVICES R.M S.A.S \ pdf_class \ locale.class.php on line 68 TCPDF ERROR: Some data has already been output, can not send PDF file
it generates it well in windows 7, but in windows 10 it is that it comes out of warning
// load the file self :: $ _ list = array (); $ handle = fopen ($ file, 'r'); while (! feof ($ handle)) { $ line = fgetcsv ($ handle); if (count ($ line)! = 2) continue; // this is line 68 of the warning self :: $ _ list [trim ($ line [0])] = trim ($ line [1]); } fclose ($ handle); }