You are here: Re: [PHP] SPL Countable count() not being called « PHP « IT news, forums, messages
Re: [PHP] SPL Countable count() not being called

Posted by Stut on 10/13/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация