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? 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 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
Archived
This topic is now archived and is closed to further replies.