I saw a certain class whose declaration was this way:
class Collection implements Countable {}
I noticed that she was implementing Countable
, but I did not understand what that implementation was doing there.
What is the purpose of Countable
? Is this a default PHP interface?