About printing functions
| From: | Thodoris | Date: | Wed, 21 Jan 2009 18:33:41 +0000 |
| Subject: | About printing functions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-286923@lists.php.net to get a copy of this message | ||
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.
--
Thodoris