SyntaxFix
Write A Post
Hire A Developer
Questions
Yes, there is: you can capture the echoed text using ob_start:
echo
ob_start
<?php function TestBlockHTML($replStr) { ob_start(); ?> <html> <body><h1><?php echo($replStr) ?></h1> </html> <?php return ob_get_clean(); } ?>