Posted by Stut on 10/05/17 11:25
Justin Francis wrote:
> Stut wrote:
>
>> Should it not be $c->count() ?
>>
>> -Stut
>
> No. By implementing the Countable interface, and implementing the
> count() method, the global count($c) function is supposed to call
> $c->count(). This is so the object can be treated like a countable
> array in the same manner.
Aha, gotcha. Thanks.
-Stut
[Back to original message]
|