扫码关注官方订阅号
spl_autoload_register([$this,'userAutoLoad'])
我的php5.3.29
[$this,'userAutoLoad']这里是什么意思?
sql_autoload_register()函数可以加载用户自定义的:自动加载函数
$this是指当前已经实例化的对象,userAutoLoad是$this这个对象中的方法,可实现类自动加载
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
sql_autoload_register()函数可以加载用户自定义的:自动加载函数
$this是指当前已经实例化的对象,userAutoLoad是$this这个对象中的方法,可实现类自动加载