Php 从_call()函数$arg数组创建动态参数列表

Php 从_call()函数$arg数组创建动态参数列表,php,oop,Php,Oop,我正在将一个php库升级到它的最新版本(有点重写)&我遇到的一个问题是,作者决定用camelcase处理他的所有函数。他一直这么做,所以我想在继承的类中试试这个技巧: <?php // this will extend animal..just demo code class dog { public function __call($method, $args) { // I have a function to camelcase this - only for develo

我正在将一个php库升级到它的最新版本(有点重写)&我遇到的一个问题是,作者决定用camelcase处理他的所有函数。他一直这么做,所以我想在继承的类中试试这个技巧:

<?php
// this will extend animal..just demo code
class dog {

public function __call($method, $args) {
    // I have a function to camelcase this - only for developing
    $call_method = 'barkLoud';

    //this is so it doesn't blow up - this is what I'm trying to fix
    $myArgsList = 120;  
    $this->$call_method($myArgsList);
}   

function barkLoud($decibals)
{
    echo 'Barking at '. $decibals;
}
}

$poppy = new dog;
print $poppy->bar_loud(100);

使用
返回call\u user\u func\u数组(数组($this$call\u方法),$args)

我知道答案是那些调用函数中的一个,但无法确定我需要什么。谢谢(我马上就接受)