Functions with Endless Amounts of Arguments

Submitted by Adam » 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.
Rating: 2.8/5 | 228 clicks | 0 comments | 0 saves | share | report

Share this tutorial

There are a number of different ways to share this tutorial with others. Below are the links to many different social networking and social bookmarking sites- just click on your favorite service and most of the work should be done for you. Other methods of sharing tutorials will come in the future.

digg it · save to del.icio.us · share on facebook · reddit · furl · blinklist · ma.gnolia · pixel groovy