When Class method same name php function
897
Consider this code:
class some_class extends someother_class
{
function delete()
{
delete($somefile); // <-- That refers to the PHP function called delete
parent::delete(); // <-- That refers to the delete() method in the parent class
}
}
How do I use the PHP function delete from within the delete method in the extended class?
Answer
Solution:
You should be able to use
call_user_func_array()
here: