Thanks for the response. Looks good on the face of it however I am just getting a blank white page.
Here's what I have
<?php
function callback($buffer)
{
return (str_replace(
array('nervous', 'sleep'),
array('<img src="http://images.boardho
$buffer)));
}
ob_start("callback");
?>
<html>
<body>
<p>nervous<BR>sleep</p>
</body>
</html>
Any help you can offer will be greatly apreciated.
Thanks,
Andrew.
Main Topics
Browse All Topics





by: arantiusPosted on 2005-10-16 at 14:05:42ID: 15095729
Reference:
http://php.net/ob_start
and
http://php.net/str_replace
Modify example one in ob_start to use arrays with str_replace. I.E.
return (str_replace(
array('happy', 'sad'),
array('<img src="happy.gif">', '<img src="sad.gif">',
$buffer));