新写的类工厂函数

WBOY
Release: 2016-06-13 13:51:32
Original
871 people have browsed it

新写的类工厂函数,请指教

PHP code
 hasMethod('__construct') && !empty($params)) { $obj = $ref->newInstanceArgs($params); } else { $obj = $ref->newInstance(); } return $obj; } } ?>
Copy after login


------解决方案--------------------
这个做什么用?看起来只是起了一个autoloader的作用?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!