Phantazm Digs Around In His Stash Of Code...
Ahh... here 'tis!
ob_start();
echo "Anything output by php from here up until the ob_get_contents() will NOT be passed on to the browser, but is instead stored in the \$mydata variable as defined below...";
$mydata=ob_get_contents();
ob_end_clean();
In the above example, anything you output between the ob_start() and the ob_get_contents functions will be saved in $mydata, as opposed to truly being echo(ed)