seventheyejosh Posted July 8, 2009 Share Posted July 8, 2009 Does anyone know of a method to see if a function exists? And if it does call it? It's worth noting that i HATE die()!!! but can something like this happen? $class->function() OR die(); except i dont need it to die, just keep going. Is it doable? Thanks all Link to comment https://forums.phpfreaks.com/topic/165238-solved-verify-function/ Share on other sites More sharing options...
wildteen88 Posted July 8, 2009 Share Posted July 8, 2009 Use function_exists for procedual functions. Or for methods you can use method_exists Link to comment https://forums.phpfreaks.com/topic/165238-solved-verify-function/#findComment-871354 Share on other sites More sharing options...
seventheyejosh Posted July 8, 2009 Author Share Posted July 8, 2009 Thanks much! Link to comment https://forums.phpfreaks.com/topic/165238-solved-verify-function/#findComment-871359 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.