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
--- 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
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
Is there a way to make a variable of a function optional?
Thank You,
Jason Williard
4 matches
Mail list logo