Hi, I have this problem. The function returns result as echo and I'm not allowed to change it. Is there any way to use it in variables? This example writes output before h1 tags and the $variable in h1 does not write anything. $variable = thatfunction(); <h1><? echo $variable; ?></h1> PHP: I would really appreciate any help.
<?php ob_start(); thatfunction(); $variable = ob_get_contents(); ob_end_clean(); ?> <h1><?php echo $variable; ?></h1> PHP: