Extracting HTML Data with Curl / PHP

I have the following code in PHP \[code\] $ch = curl_init("http://blog.com"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); echo $output;\[/code\]I am trying to import the block of code in between \[code\]<div id="content">\[/code\] and \[code\]</div>\[/code\] I would like to know the best way of extracting this code.Thank you!
 
Back
Top