strong-storm Posted August 14, 2004 Report Share Posted August 14, 2004 Kādam ir ideja, kā lai uztaisa, ja sms teksts ir 200 zīmes tad lai sūta divas sms utt? Link to comment Share on other sites More sharing options...
bubu Posted August 14, 2004 Report Share Posted August 14, 2004 $sms = 'Ljoti garsh sms...... '; if (strlen($sms)=200) { sendSMS(substr($sms,0,100)); sendSMS(substr($sms,100,100)); } else { sendSMS($sms); } Link to comment Share on other sites More sharing options...
strong-storm Posted August 15, 2004 Author Report Share Posted August 15, 2004 un tad vinjam vaijadzētu sūtiit attiecīgo skaitu ar sms? Link to comment Share on other sites More sharing options...
Venom Posted August 16, 2004 Report Share Posted August 16, 2004 while($text) { $sms=substr($text,0,200); $text=substr($text,200,strlen($text)); sendSMS($sms); } Link to comment Share on other sites More sharing options...
PheliX Posted August 16, 2004 Report Share Posted August 16, 2004 $sms=str_split($text,200); foreach($sms as $val)sendSMS($val); Link to comment Share on other sites More sharing options...
Venom Posted August 16, 2004 Report Share Posted August 16, 2004 $sms=str_split($text,200);foreach($sms as $val)sendSMS($val); str_split nepamanīju $sms=str_split($text,200); while(sendSMS(array_shift($sms))); //of coss, sendSMS jāatgriež T/F par izpildi Link to comment Share on other sites More sharing options...
Recommended Posts