Functions with Endless Amounts of Arguments

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Sometimes we need to create functions that require an indefinite and variable amount of arguments.

Statistics

  • Total Hits - 16943

  • Total Votes - 99 votes

  • Vote Up - 42 votes

  • Vote Down - 57 votes

  • Domain - www.talkphp.com

  • Category - PHP/Functions

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-19 05:49:21

Description

Sometimes we need to create functions that require an indefinite and variable amount of arguments. Creating a function to cater for these arguments may seem straight-forward; I've seen several people who have created functions with five or so arguments and if they required a sixth argument at any stage during their project's development, they added the sixth argument to the function and carried on as normal. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements