php count array rows with same id
问题 Hello everybody I have a script that loops an array that put data in a CSV file, i need to count the rows with same ID. this is my scritpt that loops the array and put it in a csv file for export. public function fputToFile($file, $allexportfields, $object, $ae) { if($allexportfields && $file && $object && $ae) { //one ready for export product $readyForExport = array(); //put in correct sort order foreach ($allexportfields as $value) { $object = $this->processDecimalSettings($object, $ae,