i am trying to extract the contents of all p tags of html inside div class and trying to insert whole stream into one variable array
this are html code example
<html>
...
<div class=news-box>
<h2>Heading</h2>
<p>afsdfdfha adhfaksdhf adfhakhf adfhaskfdha fsahfkasdhfaasfdjhasdf ahdfkahsd</p>
<p>afsdfdfha adhfaksdhf adfhakhf adfhaskfdha fsahfkasdhfaasfdjhasdf ahdfkahsd</p>
<p>afsdfdfha adhfaksdhf adfhakhf adfhaskfdha fsahfkasdhfaasfdjhasdf ahdfkahsd</p>
<p>yuoyuouoyuoyuyu oyuiouioyuioyuyiouyoiy youyoiyuioyuioyuyoiuyiuyiyuioyu yuyiu</p>
</div>
...
</html>
i want to extract all content in p and trying to insert whole stream into variable for to insert in database, i am using below these php codes
<?php
include('simple_html_dom.php');
$url = 'http://www.example.com';
$html1=file_get_html($url);
$content=array();
foreach($html1->find('div.story-box p') as $e)
{
$content=$e;
}
echo $content;
?>
why it is showing only last line... want to show all contents in p tag after assigning in one variable not $e