Re: About printing functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux