I have the string $content
with an big and aleatory text. I want to explode $content
and the delimiter was the first occourcence of any value in the array $array_explode
. Could anyone help me?
Something like that:
$content="...";
$array_explode = array("<br>", "<p>", "<h2>", "<h1>", "<h3>");
$content_explode = explode($array_explode, $content);