How to redeclare a function
Posted: Wed Feb 14, 2007 10:06 am
Hi.
I want to create a program which modifies 'foo()' function if a situation happens.
I don't want to insert an 'IF' within the function, since I want not to modify the original 'functions.php' file. But if I redeclare 'foo()' I get this error message:
-------
Cannot redeclare foo() (previously declared in /home/test/functions.php)
-------
How to redeclare the function? Thank you very much.
I want to create a program which modifies 'foo()' function if a situation happens.
I don't want to insert an 'IF' within the function, since I want not to modify the original 'functions.php' file. But if I redeclare 'foo()' I get this error message:
-------
Cannot redeclare foo() (previously declared in /home/test/functions.php)
-------
How to redeclare the function? Thank you very much.