is it possible in anyways to unset a function
what my problem is that I have to php files which declare the same function, and if i include them both they result in an error that it can not declare the function again,
those are not my php files, so I can use if(!function_ex ists()) in any of them,
I found "rename_functio n()" but it is for PECL, can't use it
what I am trying to do is , if lets say the conflicting function name is "func"
include 'first file.php';
rename_function ('func','func2' ); // or unset it for now
include '2nd file.php';
what my problem is that I have to php files which declare the same function, and if i include them both they result in an error that it can not declare the function again,
those are not my php files, so I can use if(!function_ex ists()) in any of them,
I found "rename_functio n()" but it is for PECL, can't use it
what I am trying to do is , if lets say the conflicting function name is "func"
include 'first file.php';
rename_function ('func','func2' ); // or unset it for now
include '2nd file.php';
Comment