1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

PHP: Functions with Endless Amounts of Arguments

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    2.80/5

PHP » Basics — almost 12 years ago
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.

Comments

Your Comment

You must be logged in to post a comment.