Monday, 19 August 2013

List of objects

List of objects

what is the best method to find the parent items of a comma separated string?
e.g.
array(1,2,3),array("test","123, abc"),1,"abc, 123"
to get
array(1,2,3)
array("test","123, abc")
1
"abc, 123"
Is this possible to get with a regular expression, or is there a nifty php
function that will do this?

No comments:

Post a Comment