Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php buffer

<?php

function callback($buffer)
{
  // replace all the apples with oranges
  return (str_replace("apples", "oranges", $buffer));
}

ob_start("callback");

?>
<html>
<body>
<p>It's like comparing apples to oranges.</p>
</body>
</html>
<?php

ob_end_flush();

?>
 
PREVIOUS NEXT
Tagged: #php #buffer
ADD COMMENT
Topic
Name
9+5 =