可変長引数のメソッドがあって、それをオーバーライドしつつ親クラスの同メソッドを呼び出したかったんだけど、一瞬どうやればよいのか迷ったのでメモ。 <?php class Foo { public function hoge() { $args = func_get_args(); return implode(',', $args); } } class Bar extends Foo { public function hoge() { $args = func_get_args(); $result = call_user_func_array(array($this, 'parent::hoge'), $args); return strrev($result); } } $foo = new Foo(); echo $foo->hoge(1,3,5) . "\n"; $bar = n