Re: echo new SplFileObject(__FILE__);
| From: | Stas Malyshev | Date: | Tue, 29 Jan 2013 23:00:39 +0000 |
| Subject: | Re: echo new SplFileObject(__FILE__); | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65448@lists.php.net to get a copy of this message | ||
Hi!
> Can somebody shed some light why:
>
> <?php
>
> echo new SplFileObject(__FILE__);
__toString is mapped to current() for SplFileObject:
http://www.php.net/manual/en/splfileobject.current.php
it's not documented for some reason, I think it makes sense to file a
docs bug on that.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227