How to grab the string that a function echoes to a variable?
I've go a function similar to this:
function echoer() {
echo 'foo';
}
I cannot change it's source. What I would like to do is to store 'foo' in a variable instead of letting it go to the standard output. How is it done in PHP?