--- 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: <? function myfunc($foo = 'bar') { echo "$foo\n"; } myfunc('foo'); myfunc(); ?> Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php