FYI New to PHP.
$tree = explode('</div>',$q->getCategories());
getCategories shows me a breadcrumb that is already wrapped in html
What I am trying to do is remove some html tags such as </div> and <hr />
The code that is shown above already removes </div> successfully but i can't remove <hr />
I already tried this
$tree = explode('</div>',$q->getCategories());
$tree1 = explode('<hr />',$tree[1]);
or this
$tree = explode('<hr />','</div>',$q->getCategories());
I don't know how to remove two specific html tags from one variable or string.... my lack of php vocabulary shows that I am new to PHP.