For this code i need to take a string like
<b>hey</b> more text<b>hey2</b> other text
and i expect the returned array to look like
<b>hey</b> more text
<b>hey2</b> other text
However it doesnt. How do i make it look like the above? my test code is
$myArr = split("<b>", "<b>hey</b> more text<b>hey2</b> other text");
foreach($myArr as $e)
{
echo "e = $e\n-------------\n";
}
output is
e =
-------------
e = hey</b> more text
-------------
e = hey2</b> other text
I need the b>'s to remain. How should i remove the first empty array?