Re: [PHP] doubt in ob_*() functions

2001-04-05 Thread Aaron Tuller
umm, no, you assigned $string to the output and you flushed it and you echoed $string. maybe you mean ob_end_clean()? -aaron At 12:22 AM -0300 4/6/01, Christian Dechery wrote: >take a look at this small code: > >ob_start(); >echo "something"; >echo "something else"; >$string=ob_get_contents();

[PHP] doubt in ob_*() functions

2001-04-05 Thread Christian Dechery
take a look at this small code: ob_start(); echo "something"; echo "something else"; $string=ob_get_contents(); ob_end_flush(); echo $string.""; shouldn't this be the output? something something else so why it outputs this? something something else something something else