I spent some time searching online and found nothing.
Later I thought of a way, which I think is original.
Just use the interception and replacement function.
Copy code The code is as follows:
function smssubstr($string, $length) {
if(strlen($ string) <= $length) {
return $string;
}
$strcut = '';
for($i = 0; $i < $length; $i++) {
$strcut .= ord($string[$i]) > 127 ? $string[$i].$string[++$i] : $string[$i];
}
return $strcut;
}
for($i=1; $i<=$smsnum; $i++){
${'smscontent'.$i} = smssubstr($message,$smsper) ;
$message = str_replace(${'smscontent'.$i},"",$message);
}
http://www.bkjia.com/PHPjc/321619.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/321619.htmlTechArticleI spent some time searching online and found nothing. Later, I came up with a way, which I think is original. Just use the interception and replacement function. Copy the code The code is as follows: function smss...