Re: date_diff

From: Date: Fri, 01 Aug 2008 19:18:20 +0000
Subject: Re: date_diff
References: 1 2 3 4 5 6 7 8  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969379224@lists.php.net to get a copy of this message
On Fri, Aug 1, 2008 at 11:59, <a_j_bellamy@hotmail.com> wrote: > It does, thats why it works with date_add & date_sub but when it's > var_dumped nothing is displayed just -> diff: object(DateInterval)#3 (0) { } I talked to Derick about it, on IRC, and apparently this is a bug, var_dump()ing DateInterval should show the properties of the object. To retrieve the interval you should use the ->format() method though. -Hannes

« previous php.doc (#969379224) next »