I have found two examples of preg_split that works perfectly, but even looking at the php manual, I cant figure how to make an explode with multiple patterns.
Right now I want to explode a string by Monday or Tuesday or Friday
Found this examples:
$import = preg_split( '/\\r\
|\\r|\
/', $string );
// explodes the string by line breaks
$import = preg_split("/[1|2|3|4|5|6|7|8|9|0]+/", $string);
// explodes the string by its numbers
But still got no idea how to write the pattern. Can anyone help me? I home my functions help someone too.
Show us a made-up example of the string you have have to split, and then show the exact parts you would like to end up with - don’t describe them - show them.