Re: Passing arguments as they are received to another function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jul 12, 2008 at 6:42 PM, James Dempster <letssurf@xxxxxxxxx> wrote:

> On the line where you have
> self::$statement->call_user_func_array(array('PDOStatement','bindParam'),func_get_args());
> try this
>
> call_user_func_array(array(self::$statement,'bindParam'),func_get_args());
>
> see if that works...?
>

Thanks, this is working fine. I only had to make the following adjustment:

  $args = func_get_args();
  call_user_func_array(array(self::$statement,'bindParam'),$args);

since func_get_args as an argument is allowed only on user defined
functions.

Thank you very much for your time!

Regards,
Luigi

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux