You're using $sms after the foreach loop is done. So it will only contain the last chunk. You need to use it inside the loop.
確定! 回上一頁