Reputation: 1
Is it possible to use ob_get_contents but keep php balise?
Code:
<?php ob_start(); ?>
<?php echo 'asdfasdf'; ?>
<?php
$content = ob_get_contents();
ob_end_clean();
?>
Result:
<?php echo 'asdfasdf'; ?>
Upvotes: 0
Views: 150