I have a php array with each value in array having a space delimiter like
a[1]="1 32"
a[2]="2 33"
a[3]="3 67"
...
I want to divide this array into 2 arrays using the delimiter space. Result should be something like:
a[1]="1"
a[2]="2"
a[3]="3"
...
b[1]="32"
b[2]="33"
b[3]="67"
...
What should be the optimal way to go about this?
splitis deprecated, it should not be used anymore.This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.preg_split()is overkill for something simple as this.