What is the simplest way to suppress any output a function might produce? Say I have this:
function testFunc() { echo \'Testing\'; return true; }
Yes you are on the right track as to leveraging PHP's output buffering functions, i.e. ob_start and ob_end_clean (look them up on php.net):