我正在尋找將unicode字母數字類型的字符串拆分爲固定長度的方法。 例如:按固定長度分割字符串
992000199821376John Smith 20070603
和數組應該是這樣的:
Array (
[0] => 99,
[1] => 2,
[2] => 00019982,
[3] => 1376,
[4] => "John Smith",
[5] => 20070603
)
陣列中的數據將被分割這樣的:
Array[0] - Account type - must be 2 characters long, Array[1] - Account status - must be 1 character long, Array[2] - Account ID - must be 8 characters long, Array[3] - Account settings - must be 4 characters long, Array[4] - User Name - must be 20 characters long, Array[5] - Join Date - must be 8 characters long.
什麼是目標語言? – dasblinkenlight
php .. sry忘記提及 –
添加標籤可提高您的問題的可見度。 – dasblinkenlight