Re: [PHP] Optional Vars in Functions

2004-01-02 Thread Eugene Lee
On Fri, Jan 02, 2004 at 01:20:50PM -0800, Chris wrote: : Jason Williard asked: : > : > Is there a way to make a variable of a function optional? : : http://www.php.net/functions More specifically: http://www.php.net/manual/en/functions.arguments.php e.g. function puke ($stuff

Re: [PHP] Optional Vars in Functions

2004-01-02 Thread Chris Shiflett
--- Jason Williard <[EMAIL PROTECTED]> wrote: > Is there a way to make a variable of a function optional? Just give it a default value. Try this example: Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook

RE: [PHP] Optional Vars in Functions

2004-01-02 Thread Chris
http://www.php.net/functions -Original Message- From: Jason Williard [mailto:[EMAIL PROTECTED] Sent: Friday, January 02, 2004 1:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Optional Vars in Functions Is there a way to make a variable of a function optional? Thank You, Jason Williard

[PHP] Optional Vars in Functions

2004-01-02 Thread Jason Williard
Is there a way to make a variable of a function optional? Thank You, Jason Williard