J
Jay Donnell
I have a function that is a few thousand lines of code (I didn't write
it) and I want to capture the output and save it as a variable. This
is very easy to do in php. It would look something like this.
<?php
function myFunc(){
echo "something else"
}
//sent immediately to browser
echo "something"
//start capturing the output
ob_start();
myFunc()
$out = ob_get_clean();
//$out now contains 'something else'
//and 'something else' is never sent to the browser.
?>
Is this possible in ASP? I've searched the net and haven't been able
to find anything.
it) and I want to capture the output and save it as a variable. This
is very easy to do in php. It would look something like this.
<?php
function myFunc(){
echo "something else"
}
//sent immediately to browser
echo "something"
//start capturing the output
ob_start();
myFunc()
$out = ob_get_clean();
//$out now contains 'something else'
//and 'something else' is never sent to the browser.
?>
Is this possible in ASP? I've searched the net and haven't been able
to find anything.