What is the simplest way to suppress any output a function might produce? Say I have this:
function testFunc() { echo \'Testing\'; return true; }
Here you go:
ob_start(); testFunc(); ob_end_clean();
"ob" stands for "output buffering", take a look at the manual pages here: http://www.php.net/outcontrol