Jump to content

Archived

This topic is now archived and is closed to further replies.

Prismatic

Supress paramater count error in a function (method)

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.