Re: A general buffering function
- From: Michael Placentra II <sumguyovrthar@xxxxxxxxx>
- Date: Tue, 24 Apr 2007 16:29:35 -0400
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
.
- Follow-Ups:
- Re: A general buffering function
- From: Razzbar
- Re: A general buffering function
- References:
- A general buffering function
- From: Razzbar
- Re: A general buffering function
- From: Michael Placentra II
- Re: A general buffering function
- From: Razzbar
- A general buffering function
- Prev by Date: Re: MySQL error reporting
- Next by Date: COM Objects
- Previous by thread: Re: A general buffering function
- Next by thread: Re: A general buffering function
- Index(es):
Relevant Pages
|