2009/1/22 Török Alpár :
>
>
> 2009/1/22 Jan G.B.
>>
>> 2009/1/21 Thodoris :
>> >> $sReturned = ob_get_contents();
>> >> ob_end_clean();
>> > That's a good though thanks. Although I was aware of output buffering I
>> > used
>> > to ignore that ob_end_clean actually exists...
>> You can even make
2009/1/22 Jan G.B.
> 2009/1/21 Thodoris :
> >> >> ob_start();
> >> badFunctionThatSpitsInsteadOfReturning();
> >> $sReturned = ob_get_contents();
> >> ob_end_clean();
> >> ?>
> >
> > That's a good though thanks. Although I was aware of output buffering I
> used
> > to ignore that ob_en
2009/1/21 Thodoris :
>> > ob_start();
>> badFunctionThatSpitsInsteadOfReturning();
>> $sReturned = ob_get_contents();
>> ob_end_clean();
>> ?>
>
> That's a good though thanks. Although I was aware of output buffering I used
> to ignore that ob_end_clean actually exists...
You can even mak
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
2009/1/21 Edmund Hertle
> 2009/1/21 Thodoris
>
> >
> >
> >> On Jan 21, 2009, at 1:33 PM, 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";
>
On Wed, Jan 21, 2009 at 08:49:46PM +0200, Thodoris wrote:
>
> Well Jason my point is theoretical. Lets just say that this function
> doesn't just print "blah blah blah" but like tones of html that you may
> like to reuse...
>
> Well you could always change it to this:
>
> function print_str() {
you can use Output Buffering :
That's a good though thanks. Although I was aware of output buffering I
used to ignore that ob_end_clean actually exists...
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/1/21 Thodoris
>
>
>> On Jan 21, 2009, at 1:33 PM, 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
you can use Output Buffering :
2009/1/21 Edmund Hertle
> 2009/1/21 Jason Pruim
>
> >
> > On Jan 21, 2009, at 1:33 PM, Thodoris wrote:
> >
> > Hi gang,
> >> Lets say that you have a function that prints something to the output
> >> simply like this:
> >>
> >> function print_str() {
> >> p
On Jan 21, 2009, at 1:33 PM, 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 wit
2009/1/21 Jason Pruim
>
> On Jan 21, 2009, at 1:33 PM, 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 o
On Jan 21, 2009, at 1:33 PM, 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 wit
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
13 matches
Mail list logo