Hello, im after merging two strings togther from a for each loop.

here is what i have

foreach($html->find('div[class=product_description]') as $post)
{
$desc_html_puller = preg_replace("/<.*?>/", "", $post);
echo $post
}

that does the trick but i want to use the $post variable out of the for each loop, but when i do it only brings the first variable out

fixed it... forget to use a .=

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.