Unable to retrieve information between body tags...
Posted: Wed Feb 01, 2006 8:07 am
I am trying to get the information between body tags but I could not...
Code: Select all
<?php
$input = <<<EOD
<body>
<b>hi all</b>
</body>
EOD;
echo preg_match_all("/<body>(.*?)<\/body>/mi", $input, $matches)."<br />";
print_r($matches);
?>
</pre>