摘要: _toString方法是在打印对象时自动调用的魔术方法,如果不声明会报以下错Catchable fatal error: Object of class String could not be converted to 示例:PHP里有很多的字符串函数,假如要先过滤字符首尾的空格,再求出字符串的长度... 阅读全文
posted @ 2015-09-05 11:40 雪山飞猪 阅读(2239) 评论(3) 推荐(0)