I have a variable that contains numbers, separated by commas, such as:
, 165, 238, 6, 5555, 44,
It can, of course, easily be cleaned up to:
165, 238, 6, 5555, 44
But I need to go through this string as an array. Is there any PHP function to explode this string into a nice array? My current altenative, that I can see at least, is to use string functions to find the positions of the commas, and then extracting the numbers based on that. Seems ugly and slow though.