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

Popular posts from this blog

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -

How do I get the nth item in a queue in java? -

c# - error executing child request for server.transfer with Handler -