You are here: Re: A general buffering function « PHP Programming Language « IT news, forums, messages
Re: A general buffering function

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация