strong-storm Posted August 14, 2004 Report 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?
bubu Posted August 14, 2004 Report 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); }
strong-storm Posted August 15, 2004 Author Report Posted August 15, 2004 un tad vinjam vaijadzētu sūtiit attiecīgo skaitu ar sms?
Venom Posted August 16, 2004 Report Posted August 16, 2004 while($text) { $sms=substr($text,0,200); $text=substr($text,200,strlen($text)); sendSMS($sms); }
PheliX Posted August 16, 2004 Report Posted August 16, 2004 $sms=str_split($text,200); foreach($sms as $val)sendSMS($val);
Venom Posted August 16, 2004 Report 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
Recommended Posts