RE: SPL Countable count() not being called

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

 



[snip]
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.
[/snip]

I was asleep earlier....if $c is not an array 1 will be returned. $c is
one number (200), not an array.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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