Flo*_*ler 3 php interface class
我正在用PHP动态加载一个类.此文件和类名已从数据库中删除.该文件必须包含类和方法.我尝试用界面解决它,但我真的不明白我怎么能以最美丽的方式做到这一点.
你的建议是什么?
Ale*_*sky 5
使用class_exists(),以确定是否一个类已经被定义,method_exists()以确定是否一个类具有的方法和instanceof以确定是否类实现一个接口.
class_exists()
method_exists()
instanceof
归档时间:
13 年,6 月 前
查看次数:
1097 次
最近记录:
12 年,2 月 前