// Send SMS
$number = 12345678;
$text = 'Hi John, how are you?';
$sms_api_result = sendSMS($number, $text);
// Check if SMS was sent
if ($sms_api_result[0] == 'OK') {
// Ok, SMS received by the API
echo 'The SMS was sent.';
}
else {
// Failure, SMS was not sent
// In this example we display the response to identify the error
print_r($sms_api_result);
}