Re: functions, opinion...

From: Date: Tue, 17 Jun 2003 06:20:05 +0000
Subject: Re: functions, opinion...
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-151784@lists.php.net to get a copy of this message
On Tuesday 17 June 2003 12:50, DvDmanDT wrote: > I was replying to "If you don't do it this way, you'll > find yourself re-writing a function sooner or later because you need it > to return the data instead of displaying it."... Then you don't need to > modify the function if you turn on ob, call function, then get contents, > then clear ob... Ok, it's a rather bad way to do it, but it works for me... Even the php crew had to rewrite functions because it displayed data instead of returning. Case in point: print_r() recently had a extra argument added to specify whether the output was printed or returned. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* I have learned silence from the talkative, toleration from the intolerant, and kindness from the unkind. -- Kahlil Gibran */

« previous php.general (#151784) next »