Method: content::end

Stops the output buffer
and flush the content or return it.

Info

Syntax

content::end($return=false)

Parameters

Return (mixed)

Example


content::start();
echo 'some content';
content::end();    
// echo the content immediatelly


content::start();
echo 'some content';
$content = content::end(true);    
// return the content