Re: Variable number of parameters
| From: | Larry Garfield | Date: | Wed, 06 Aug 2008 01:32:01 +0000 |
| Subject: | Re: Variable number of parameters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277756@lists.php.net to get a copy of this message | ||
On Tuesday 05 August 2008 12:40:27 am Philip Thompson wrote:
> Ok, is it possible to send any number of variables to db->bind() in
> order to send those to statement->bind_param()?
>
> Or, if someone else has a better db abstraction method, feel free to
> educate...
>
> Thanks,
> ~Phil
Unless I'm misunderstanding you entirely:
http://us.php.net/manual/en/function.func-get-args.php
http://us.php.net/call_user_func_array
You can pretty much do anything you want with that.
--
Larry Garfield
larry@garfieldtech.com