What is the simplest way to suppress any output a function might produce? Say I have this:
function testFunc() {
echo 'Testing';
return true;
}
And I want to call testFunc() and get its return value without "Testing" showing up in the page. Assuming this would be in the context of other code that does output other things, is there a good method for doing this? Maybe messing with the output buffer?