Well preg match will do the job. Try the following:
<?
preg_match_all('/\<object(.*)\<\/object\>/is',$page_contents,$tmp);
$matches=$tmp[0]; unset($tmp);
//display the first one on the page
echo $matches[0];
?>
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
Offline 3,004 posts
since Sep 2007