Re: Passing arguments as they are received to another function
| From: | Luigi Perroti | Date: | Sat, 12 Jul 2008 17:00:08 +0000 |
| Subject: | Re: Passing arguments as they are received to another function | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276700@lists.php.net to get a copy of this message | ||
On Sat, Jul 12, 2008 at 6:42 PM, James Dempster <letssurf@gmail.com> 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