Miscellany
public php v1 · immutablefunction SendMessages(message){ numMessages = ...; CONCAT_MESSAGES concat = ...; if (numMessages > 1) { // Find index where first message ends idxDelimiterPosition = lettersInOneMessage-concatRemoval; // Send first message SendSMS(message.Substring(0, idxDelimiterPosition), concat); // Recursive: Do the same things on the rest of the message SendMessages(message.Substring(idxDemiliterPosition)); } else SendSMS(message.Substring(0, idxDelimiterPosition), CONCAT_MESSAGES.OFF); }