function removeRecords($tdIDArray = "") { $td = new TD(); $rows = 0; foreach ($tdIDArray as $key => $value) { if ($td->removeRecord($value)) { $rows++; } } return $rows; }