a function with indefinite number of arguments

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
jazz090
Forum Contributor
Posts: 176
Joined: Sun Apr 12, 2009 3:29 pm
Location: England

a function with indefinite number of arguments

Post by jazz090 »

is it possible to create a function which takes an idefinite number of arguments?
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: a function with indefinite number of arguments

Post by Mark Baker »

Take a look at func_get_args()
Post Reply