Re: echo count(false); == 1 ?!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just think about it. When was the last time you counted something and the
result was false? It makes no sense. Logically counting should return
negative, 0 or positive value.


On Wed, Nov 27, 2013 at 7:04 PM, Daevid Vincent <daevid@xxxxxxxxxx> wrote:

> Really? 1?? I would have expected 0 or false or something other than
> positive. *sigh*
>
> $ php -a
> php > echo count(false);
> 1
>
>
> :-\
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux