I am working on a project, in which I am using a deprecated function from the older version. But don\'t want my script to stop if used in the older version.
So I am check
When used with a function (not a class method) there is no difference except that function_exists is slightly faster.
function_exists
But when used to check the existence of methods in a class you cannot use function_exists. You'll have to use is_callable or method_exists.
is_callable
method_exists