Poszukuję sposobów podziału ciągu znaków alfanumerycznych Unicode na stałe długości. na przykład:Podział na ciąg o stałej długości
992000199821376John Smith 20070603
i tablica powinna wyglądać następująco:
Array (
[0] => 99,
[1] => 2,
[2] => 00019982,
[3] => 1376,
[4] => "John Smith",
[5] => 20070603
)
dane array zostaną podzielone tak:
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.
Jaki jest język docelowy? – dasblinkenlight
php .. sry zapomniałem wspomnieć o –
Dodanie tagu daje twoje pytanie lepszej widoczności. – dasblinkenlight