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 Quote 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 Quote 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! Quote Link to comment https://forums.phpfreaks.com/topic/165238-solved-verify-function/#findComment-871359 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.