Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
 ?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #catch #echo #output
ADD COMMENT
Topic
Name
2+6 =