Se a função não existe php
if(!function_exists('my_function')){
function myfunction(){}
}
Yousef Qaoud
if(!function_exists('my_function')){
function myfunction(){}
}
function_exists('function_name'); //Will return true if function exists
if(function_exists('my_function')){
// my_function is defined
}