Answers for "php catch echo output"

PHP
0

php catch echo output

<?php
ob_start(); // Start output buffering

Render::UnorderedList(Class::getItems(), Class::getFields(), true); 

$list = ob_get_contents(); // Store buffer in variable

ob_end_clean(); // End buffering and clean up

echo $list; // will contain the contents
 ?>
Posted by: Guest on June-09-2020

Browse Popular Code Answers by Language