|
Posted by Razzbar on 04/24/07 01:43
On Apr 23, 3:54 pm, Michael Placentra II <sumguyovrt...@gmail.com>
wrote:
> Pass a string, which is the name of the function, and eval() that.
This seems to work, which puzzles me, that it gets passed the
parameter
evaluation and on to the eval(). As long as the function being passed
does
not use parameters, this is good enough.
> Then the function outputStuff() is not being passed to your function,
> rather it is being run and then the return value of outputStuff() is
> being passed to buffer(). I believe that in PHP if you don't use the
> return keyword in a function, the return value of the last statement in
> the function is returned, so what is really being passed to your
> buffer() function is the return value of the last statement in the
> function you are trying to pass to it, which may actually be the same
> string that is being outputted.
It doesn't seem to make a difference. If you pass it a function like
function foo(){
echo "What you see";
return "What you get";
}
.... buffer will return "What you see". Which is what I want. For now.
Navigation:
[Reply to this message]
|