Re: wacky object idea

From: Date: Mon, 28 Aug 2000 11:59:37 +0000
Subject: Re: wacky object idea
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-30950@lists.php.net to get a copy of this message
On Mon, Aug 28, 2000 at 07:53:03AM -0400, Chuck Hagenbuch wrote: > Quoting Stig S. Bakken <ssb@fast.no>: > > > I'd go further than that and say it could be this way of all scalar > > types: > [snip] > > Some PEAR code happens to already define toString(). > > Yup - I'm pretty sure I'd already seen something about the engine respecting > toString(), but it doesn't appear to work right now... class thies { functions __string_value() { return "hello world!\n"; } } $a = new thies; echo $a; -> prints hello world! > > -chuck > > -- > Charles Hagenbuch, <chuck@horde.org> > -- > "look at how many toes i have!" - Amy > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.dev (#30950) next »