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"); Link to comment https://forums.phpfreaks.com/topic/172766-solved-overriding-user-defined-functions/ 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. Link to comment https://forums.phpfreaks.com/topic/172766-solved-overriding-user-defined-functions/#findComment-910604 Share on other sites More sharing options...
ldb358 Posted September 2, 2009 Author Share Posted September 2, 2009 okay thanks good to know Link to comment https://forums.phpfreaks.com/topic/172766-solved-overriding-user-defined-functions/#findComment-910605 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.