- ob_start: documentation ( source)
- preg_replace: documentation ( source)
- ob_flush: documentation ( source)
<?php
ob_start(function($buffer) {
return preg_replace('/quick/', 'slow', $buffer);
});
echo 'The quick brown fox jumped over the lazy dog.';
ob_flush();