You can use the PHP output buffering feature:
public function speak()
{
ob_start();
parent::speak();
$parent_output = ob_get_contents();
ob_end_clean();
echo 'Hello from child';
}
}
For more info, see the PHP.net manual.
Good luck ;)