countable
Interface for Custom Collection Classescountable
Interface for Custom Collection ClassesIf you create custom collection classes, implement the Countable
interface to enable them to be used with the count()
function. This enhances the interoperability and usability of your collection classes.