Functions with Endless Amounts of Arguments

Tutorials Shared by the Internet Community

Advertisements


Functions with Endless Amounts of Arguments

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

Statistics

  • Total Hits - 31914

  • 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.    More detail...


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

Advertisements