how can I call a method from another class and not be restriced to case sensitivity?
class TestA
{
function Index()
{}
}
class TestB extends TestA
{
function __construct()
{
parent::__construct();
}
function load()
{
$this->index();
}
}
Assume all the logic is correct when extending another class, how can i do something like that?
I thought of using a preg_math() type of approach, but I’m not 100% sure of the logic behind that.
Perhaps use the __call() magic method?
PHP methods aren’t case-sensitive in the first place. See?