arrays

i have an array with many values and the values are in twos separated by a comma, like this D3S1358=>15,16. i need to separate the two so that they are separate values each with its own variable like this $a will be 15 and $b will be 16. make sense?
please help.

In case this wan’t addressed in the other forums you posted this on, if you can, don’t store the data as a comma delimited list. If you have no control over the format of this data, you would use explode() to separate the data into an array, then use trim() to remove any white-space surrounding the data. You would then just reference the elements of the array to access the values.

Sponsor our Newsletter | Privacy Policy | Terms of Service