alright - following problem:
i am working with a ready made pen source script which has a bunch of functions, that PRINT strings, such as
<?
//CODE EXAMPLE 1:
//=============
function foo() {
$bar = "some string";
print $bar;
}
foo();
?>
output:
some string
i need to assign the printed out string to a variable though (and not print them). i.e. i need to do something like this:
<?
//CODE EXAMPLE 2:
//=============
function foo() {
$bar = "some string";
return $bar;
}
$assignedFoo = foo();
//process value here
print $assignedFoo;
?>
output:
some string
sooo - since i only have functions available like in CODE EXAMPLE 1 (can't rewrite them), but need to treat their printed output like in CODE EXAMPLE 2, i wondered if somebody could help me here.
i remember doing something like this before, but have no clue anymore how or where to start looking at. (buffers???)
thanks in advance!
sid