__toString() with strval() and settype()

From: Date: Thu, 15 Jan 2004 18:04:09 +0000
Subject: __toString() with strval() and settype()
Groups: php.internals 
Request: Send a blank email to internals+get-7129@lists.php.net to get a copy of this message
Question: Given an object, $obj, should strval($obj) and settype($obj, 'string') return $obj->__toString() if it exists? They currently do not, but (string) $obj does. Are these three operations supposed to be identical, but with different syntax? Or are there other differences among them? -adam -- adam@trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today!

« previous php.internals (#7129) next »