![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
Load2017
这个作者很懒,什么都没留下…
展开
-
PHP函数之spl_autoload_register和spl_autoload_unregister
spl_autoload_register 首先:理解__autoload()函数 当同一个文件中,实例化一个不存在的类,会自动调用__autoload()函数 用法:将类名传入,找到__autoload($class);中的路径,包含路径中的类文件<?php function __autoload($class) {原创 2017-06-16 05:25:56 · 483 阅读 · 0 评论 -
PHP call_user_func与call_user_func_array函数的用法
call_user_func(funcName,parameter1,parameter2,parameter3); 把第一个参数作为回调函数调用,其余参数是回调函数的参数。 call_user_func(funcName,array(parameter1,parameter2,parameter3)); 把第一个参数作为回调函数调用,数组中的元素是回调函数的参数。原创 2017-06-16 06:18:39 · 229 阅读 · 0 评论