Is it possible to do multiple explode () in PHP?
For example, for this:
foreach(explode(" ",$sms['sms_text']) as $no) foreach(explode("&",$sms['sms_text']) as $no) foreach(explode(",",$sms['sms_text']) as $no)
All in one explode like this:
foreach(explode('','&',',',$sms['sms_text']) as $no)
What is the best way to do this? I want to split a string into multiple delimiters on the same line.
source share