but i am developing a class in which i developed a method that i want to consider as a "default function"
now how i want this class to work is that you can create a "user defined function" and assign it as a "class function"
thus i have something like
Code: Select all
class OOP{
var $default_func = "default_func"
function default_func (){
}
}Code: Select all
function my_func(){
}
$a = new OPP();
$a->default_func = 'my_func';
echo $a->default_func();Kendall