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

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

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