PHP自動摘錄前幾個字

使用mb_substr這一個函式

使用說明
mb_substr(string str, int start [,int length] [,string encoding]);
mb_substr(輸入字元,開始長數,截取的長度,字元編碼);

發表迴響