Jump to content

[SOLVED] overriding user defined functions


ldb358

Recommended Posts

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");

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.