|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-13 10:17 UTC] derick@php.net
[2004-10-13 18:22 UTC] melnikow at hotbox dot ru
[2004-10-14 07:58 UTC] derick@php.net
[2004-10-17 11:09 UTC] melnikow at hotbox dot ru
[2004-10-17 13:10 UTC] derick@php.net
[2004-10-17 13:19 UTC] melnikow at hotbox dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 03:00:01 2025 UTC |
Description: ------------ The new __toString() magic method wont work Reproduce code: --------------- The new __toString() magic method allows you to overload the object to string conversion: <?php class Foo { function __toString() { return "What ever"; } } $obj = Foo; $str = (string) $obj; // call __toString() echo $obj; // call __toString() ?> Expected result: ---------------- What ever Actual result: -------------- Object#n