class - How to load php code dynamically and check if classes implement interface -
i'm loading class dynamically in php. file , class name gotten out of database. file must contain class , method. tried solve interface, don't how beautiful way.
what suggestions?
use class_exists()
determine if class has been defined, method_exists()
determine if class has method , instanceof
determine if class implements interface.
Comments
Post a Comment