实现该接口可以使用count()方法来获取集合的总数
PHP Countable接口,布布扣,bubuko.com
PHP Countable接口
原文:http://www.cnblogs.com/xiaodo0/p/3611307.html