I would like to split a string by an array of characters, how would I do that? I notice preg_split takes a string input not an array.
For example, here is my array:
$splitting_strings = array(".", ";", "-", "and", "for");
$text = "What a great day, and I love it. Who knows; maybe I will go.";
$result = array (
0 => "What a great day",
1 => "I love it",
2 => "Who knows",
3 => "maybe I will go");