Re: ArrayObject (WAS: CVS Access)

From: Date: Sun, 13 Jan 2008 21:37:14 +0000
Subject: Re: ArrayObject (WAS: CVS Access)
References: 1 2 3 4  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969378542@lists.php.net to get a copy of this message
On Jan 13, 2008 12:57 PM, Hannes Magnusson <hannes.magnusson@gmail.com> wrote: > On Jan 13, 2008 9:51 PM, Carola 'Sammy' Kummert <ray-chords@gmx.de> wrote: > > Hannes Magnusson wrote: > > > On Jan 12, 2008 10:25 PM, Herman Radtke <hermanradtke@gmail.com> wrote: > > >> +echo $arrayobject->count(); > > > > > > This should be count($arrayobject); > > > > should it? ArrayObject has a count method also, see > > The method is inherited from the Countable interface. > The whole point of the interface is the count() support. > > -Hannes > I now remember seeing another comment about this same issue. I will make a note to let people know that using it as a method is possible, but that it was meant to be used with count(). That should hopefully alleviate the confusion.

« previous php.doc (#969378542) next »