I have a string that I need to explode and get the information.
Sample string:
"20' Container 1, 40' Open Container 1, 40-45' Closed Container 3"
First I am exploding the string by , and getting
"20' Container 1"
"40' Open Container 1"
"40-45' Closed Container 3"
Now I want to explode the already exploded array as well so that I get the result in below format
array[
0 => [
0 => "20'"
1 => "Container"
2 => "1"
]
1 => [
0 => "40'"
1 => "Open Container"
2 => "1"
]
]
The strings may vary but it is decided that the format will be same e.g. length type number