Creating optional arguments
- From: Mazin07 <mazin07@xxxxxxxxx>
- Date: Sat, 15 Oct 2005 21:57:52 GMT
Let's say I have
function dosomething ($var1, $var2, $var3) {...
}
How do I make $var3 optional so that I can pass only 2 arguments and still have it work?
.
- Follow-Ups:
- Re: Creating optional arguments
- From: Siv Hansen
- Re: Creating optional arguments
- From: Andy Hassall
- Re: Creating optional arguments
- Prev by Date: Re: Does SlickEdit have a PHP debugger?
- Next by Date: Re: Creating optional arguments
- Previous by thread: PHP Signon/Signup solution needed
- Next by thread: Re: Creating optional arguments
- Index(es):