Wesley13· 1605 阅读 ·2021-10-11 # string# str函数# substr# php字符串长度# php字符串截取PHP 截取字符串 1.截取GB2312中文字符串<?php//截取中文字符串functionmysubstr($str,$start,$len){$tmpstr"";$strlen$start$len;for($i0;