I have the following string and need to cut it into pieces. But how to do this correct?
The string: $sting = 0nl10000143947019,23000143947456,....,10450143947022
... means that more nrs can be in here
Now I want to cut down this string in the following parts:
$first contains the first nr or letter in the string. So in this case it should be: 0
$second contains the second and third nrs or letters in the string. So in this case it should be: nl
$third contains EVERYTHING after the third nr or letter in the string. So in this case it should be: 10000143947019,23000143947456,....,10450143947022
$fourth contains EVERYTHING after the last , in the string. Note the this nr can be bigger or smaller than in this excample. So in this case it should be: 10450143947022
Hope this is possible!
Kind regards
Try the following: