functions that take variable arguments?
| From: | Eternity Records Webmaster | Date: | Mon, 05 Dec 2005 10:51:30 +0000 |
| Subject: | functions that take variable arguments? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-226866@lists.php.net to get a copy of this message | ||
how do you create/use a function that takes an undefined amount of
arguments? I looked at the manual but its a little confusing. for example, i
want to make a function called Update inside a DB class:
class DB {
//vars here
var $host;
var $DbUser;
//functions
function Update(...) {
//this function can take as few as 1 argument or as many as php will allow
//its supposed to update a database with the new values of the arguments.
//any help getting started on creating a function like this would be
apreciated
}
//end class
}
thanks