How would I take my makeshift code here.. and instead of making the results..
in chunk returns..
say for example..
price
price
price
price
price
price
price
Date
Date
Date
Date
Date
Date
Colour
Colour
Colour
Colour
Colour
Colour
Colour
become this instead..
number;price;Colour; end line
number;price;Colour; end line
number;price;Colour; end line
Heres my code..
<?php
include('simple_html_dom.php');
// Create DOM from URL or file
$html = file_get_html('http://mywannaparsesite.com/');
foreach($html->find('img[class=thumbnail]') as $elm) {
echo $elm->src .' '.$elm->plaintext. '<br/>';
}
foreach($html->find('strong') as $elm2) {
echo $elm2->href .' '.$elm2->plaintext. '<br/>';
}
foreach($html->find('div[style=margin-top:5px]') as $elm4) {
echo $elm4->href .' '.$elm4->plaintext. '<br/>';
}
foreach($html->find('td[id=price]') as $elm1) {
echo $elm1->href .' '.$elm1->plaintext. '<br/>';
}
foreach($html->find('td[width=13%]') as $elm3) {
echo $elm3->href .' '.$elm3->plaintext. '<br/>';
}
?>
thanks for any direct answers