Confusion with preg_match for Specific DIV can anyone help me?

Can anyone tell me how to fetch all data in specific DIV and inside it is specifec Tag "

" of given url

I Tried this by changing tag names but i Failed please any php expert can me help me ?

<?php function getdata($Url){ $str = file_get_contents($Url); if(strlen($str)>0){ preg_match("/\(.*)\<\/title\>/",$str,$data); return $data[1]; } } echo getdata(""); ?>

Example URL :

Product Web HTML Example :

Product 1

Product 2

Product 3

Product 4

Product 5

Product 6

Product 7

and so on ...

This Output i need :
and so on …

Sponsor our Newsletter | Privacy Policy | Terms of Service