function deleteRecords($ownerIDArray = "") { $owner = new Owner(); $rows = 0; foreach ($ownerIDArray as $key => $value) { if ($owner->deleteOwner($value)) { $rows++; } } return $rows; }