Justin Francis wrote:
I have not been able to get count() to be called when I pass my
Countable class to the count function. I am using PHP 5.1 Release
Candidate 1. I am not sure if it is a bug, so I am posting here to see
if anyone can help.
--
class Collection
Albert Padley wrote:
I have the following nested ifs:
if ($row['date'] '2005-10-02') {
if ($row['time'] '12:00') {
if ($row['field'] == 'P5' ) {
echo td class=\tabletextbluebg\Success;
}
}
}
else {
echo td
I have not been able to get count() to be called when I pass my
Countable class to the count function. I am using PHP 5.1 Release
Candidate 1. I am not sure if it is a bug, so I am posting here to see
if anyone can help.
--
class Collection implements Countable
{
Stut wrote:
Justin Francis wrote:
I have not been able to get count() to be called when I pass my
Countable class to the count function. I am using PHP 5.1 Release
Candidate 1. I am not sure if it is a bug, so I am posting here to
see if anyone can help.
--
class
Jay Blanchard wrote:
[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 earlierif $c
5 matches
Mail list logo