At the top of my page I have a breadcrumb.
ob_start();
<li>##product##</li>
<li>##category##</li>
After this, I run mysql query to get the variables:
$product
$category
then I run:
<?php echo str_replace("##product##", $product, ob_get_clean()) ?>
<?php echo str_replace("##category##", $category, ob_get_clean()) ?>
The variable $product gets replaced and I see the second variable won't get replaced because ive called ob_get_clean()) already for product.
How can I replace both strings using the ob_get_clean function?