Jump to content


Supress paramater count error in a function (method)

  • Please log in to reply
1 reply to this topic

#1 Prismatic

  • Members
  • PipPipPip
  • Advanced Member
  • 503 posts
  • LocationSan Diego

Posted 19 May 2006 - 03:12 AM

I'm making an authenticate method with 3 paramaters, username, password, and cookielife. The third, cookie life, can be left blank, and it will default the life of the cookie to 100 years. The problem is if you leave that out of your method call it will spit out an incorrect paramater count error. Is there a way to supress that? To make it ignore the fact that a paramater is missing from the call?

#2 kenrbnsn

  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 19 May 2006 - 04:15 AM

Read [a href=\"http://us3.php.net/manual/en/functions.arguments.php\" target=\"_blank\"]this section[/a] in the PHP Manual. It explains everything much better than I can.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users