Just a quick note here. To explode() a string using multiple delimiters in PHP you will have to make use of the regular expressions. Use pipe character to separate your delimiters.
1 |
$chunks = preg_split('/(de1|del2|del3)/',$string,-1, PREG_SPLIT_NO_EMPTY); |
There are also various flags you can use as optional: Continue reading “Using preg_split() to explode() by multiple delimiters in PHP”