Well, a "swiss knife" couple of code lines to call parent method. The only limit is you can't use it with "by reference" parameters.
Main advantage you dont need to know the "actual" signature of your super class, you just need to know which arguments do you need
<?php
class someclass extends some superclass {
function __construct($ineedthisone) {
$args=func_get_args();
call_user_func_array(array('parent',__FUNCTION__),$args);
}
function anyMethod() {
$args=func_get_args();
call_user_func_array(array('parent',__FUNCTION__),$args);
}
function anyMethod() {
call_user_func_array(array('parent',__FUNCTION__),func_get_args());
}
}
?>