|
Posted by Michael Placentra II on 04/24/07 20:29
> 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.
>
Eh...I'm thinking of PERL. What I mean is I thought that maybe the return value of the final statement would be returned if there is no return after it, IE:
function doIt()
{
$it = 'done';
}
echo '|'.doIt().'|';
Which I have now tried, and I realize it doesn't work. Because of PHP's similarities with PERL, I get confused sometimes, Sorry!
I think I like Oliver Grätz's method better. Whether or not I'm using parameters at the moment of writing the function, I'd still like to have the functionality over my shoulder. It can be used in the same way, anyway.
-Mike PII
[Back to original message]
|