PHP截取中文字符串和日期字符串截取

1、 中文截取:mb_substr()  mb_substr( $str, $start, $length, $encoding )  $str,須要截斷的字符串  $start,截斷開始處,起始處爲0  $length,要截取的字數  $encoding,網頁編碼,如utf-8,GB2312,GBK  2、截取日期 $time = '2015-05-22 12:10:00'; echo date
相關文章
相關標籤/搜索