2019年2月12日

b

摘要: b有两种,一种是 byte ,指字节,1kb=1024byte二种是bit,是指位,1byte是8bit,1kb=1024*8bit 阅读全文

posted @ 2019-02-12 16:03 running-fly 阅读(151) 评论(0) 推荐(0)

__invoke,try{}catch(){},microtime(),is_callable()

摘要: '; } public function __call($name,$arg) { if($name =='othertest') { call_user_func_array([$this,'test'],$arg); } } public function __invoke() //对象本身不能直接当函数用,如果被当做函数用,会直接回调__invoke方法 { ... 阅读全文

posted @ 2019-02-12 11:35 running-fly 阅读(180) 评论(0) 推荐(0)

导航