The code looks like this: $str _tmp = dadmin_utils::gbkstrsplit ("SMS Content", 700);//content that is too long returns an array of intercepted content 700 refers to the length of the Intercept $ Total = count ($str _tmp); $num = 1; foreach ($str _tmp as $str) { & nbsp if ($total > 1) { $STR = $str. "{$num}/{$total}"; $num ++; } $sign = Strtoupper (MD5 ($ke Y. $pMobile. $str. $ip)); $url = "SMS Address from=37&sgin=". $sign. " &tel= ". $pMobile." &msg= ". $str; $ret = file_get_contents ($url); $result = Json_decode ($ret, True ); }//Send SMS Method function Gbkstrsplit ($string, $len = 1) { $length = strlen ($string);//Get length, Kanji Account for three bytes $RETSTR = '; $RETARR = array (); for ($i = 0; $i < $length; $i + +) { $RETSTR. = Ord ($string [$i]) > 127? $string [$i]. $string [+ + $i]: $string[$i]; $len _tmp = strlen ($retstr); if ($len _tmp >= $len) { $RETARR [] = $retstr; $RETSTR = '; } } IF ($retstr! = ") { $RETARR [] = $retstr; } return $RETARR; } website Beijing constructionhttp://www.wangzhanjianshegs.com/
PHP intercepts the way to launch SMS content