Re: About printing functions
| From: | Mattias Thorslund | Date: | Wed, 21 Jan 2009 23:14:57 +0000 |
| Subject: | Re: About printing functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286967@lists.php.net to get a copy of this message | ||
Thodoris wrote:
Hi gang, Lets say that you have a function that prints something to the output simply like this: function print_str() { print "blah blah blah"; } I was wondering if there is a way to use this output and store it in a var or something without changing the function itself? And store the "blah blah blah" somewhere for later use? I can think of many reasons that someone could use this.Perhaps you are looking for what the output buffering functions do? http://us3.php.net/manual/en/book.outcontrol.php Cheers, Mattias