andrewliu 0 Junior Poster

Hello,

I'm getting problems with my coding. I'm trying to take out tags from my preg_match_all. I'm still new and learning.

preg_match_all("/\<b>\\$(.*?)\<\/b\>/is", $res[0], $Price );

for($i = 0; $i < count($Price); $i++) 
{    
    $Price = preg_replace("/<.*?>/is","",$Price);   
}

foreach($Price[0] as $kgbPrice) 
{
    $PriceArray[] = "<div class='prices' id='kgbdealsPrice'>".$Price."</div>";
}

The array is being outputted somewhere else.

I'm getting content which has

<b>content</b>

Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.