I am updating this question to better clarify what am looking for. I am passing an array to a function which is supposed to update a cart. I have two variables, $isbn<
If i get your question, you could use split() function it will divide a string into various element based on the occurrence of pattern in string.
and returns an array of strings after splitting up a string.