- count: documentation ( source)
<?php
Interface MyCountableInterface
{
public function count($mode);
}
class MyCountable implements MyCountableInterface
{
public function count($myFilterArgument = null) {
}
}
$myCountable->count(1);
count($myCountable);
count($myCountable, COUNT_NORMAL);
count($myCountable, COUNT_RECURSIVE);