break; case startsWith($line_of_text[0], 'Content Services'): case startsWith($line_of_text[0], 'Vodafone Live'): case startsWith($line_of_text[0], 'USSD'): HandleContentServiceUsage(4); // CategoryId = 3 break; default: } // $i--; } $endTime = date_create(); $runTime = $startTime->diff($endTime); if ($resultMessage === '') { print 'SUCCESS: The time it took to run the job: ' . $runTime->format('%H:%I:%S'); $db->dbTransactionCommit(); } else { echo $resultMessage; $db->dbTransactionRollback(); } fclose($file_handle); $db->close(); return true; } function stripNumerics($str) { $strlen = strlen($str); $id = ""; for ($i = 0; $i <= $strlen; $i++) { $char = substr($str, $i, 1); if (is_numeric($char)) {