標準出力への出力を文字列として取り込むことってできますか?
つまりこんな関数があるとき、

function hoge() {
echo "hogehoge";
}
$a = `hoge()`
// $a = "hogehoge" となる

ということがやりたいのですが。