ldb358 Posted September 1, 2009 Share Posted September 1, 2009 is it possible to override user defined functions? like: function test(){ echo "hello"; } function test2(){ return "hello"; } //then do something like //switch the value of test to be equal to the value of test2 and in turn return instead of echo override_function("test", "test2"); Quote Link to comment Share on other sites More sharing options...
.josh Posted September 1, 2009 Share Posted September 1, 2009 you cannot overwrite or erase a function previously defined. Quote Link to comment Share on other sites More sharing options...
ldb358 Posted September 2, 2009 Author Share Posted September 2, 2009 okay thanks good to know Quote Link to comment 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.