On Sun, 16 Dec 2012, Stas Malyshev wrote: > > Al the methods will *still* return the modified DateTime object - > > it's just that the one that you *call* f.e. ->modify() on won't > > change anymore. > > Doesn't it mean you can just call clone() on it in modifier methods > before doing anything else?
Yeah, I think so. I tried that but I got some errors. It's something for me to sort out. So far, I've just created all the helper methods etc. clone() however is not a method, but a language construct... so it's not that trivial. cheers, Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php