<?php
$sms = "Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code
:( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code
:( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code
:( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code
:( trying again :* <3";
echo strlen($sms) . "\n";
while(strlen($sms) > 160) {
echo "Here\n";
$short = substr($sms,0,159);
echo "Send SMS Long: {strlen($sms)}\n" ;
$sms = str_replace($short,'',$sms);
}
if(strlen($sms) > 0) {
echo "Send SMS Short {strlen($sms)}\n";
}
?>
394
Here
Send SMS Long: {strlen(Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code
:( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code
:( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code
:( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code
:( trying again :* <3)}
Send SMS Short {strlen(bug in the code
:( trying again :* <3, bug in the code
:( trying again :* <3)}