Prismatic Posted May 19, 2006 Share Posted May 19, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/9973-supress-paramater-count-error-in-a-function-method/ Share on other sites More sharing options...
kenrbnsn Posted May 19, 2006 Share Posted May 19, 2006 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.Ken Quote Link to comment https://forums.phpfreaks.com/topic/9973-supress-paramater-count-error-in-a-function-method/#findComment-37076 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.