[PHP] Re: optional argument when creating a function

2005-08-17 Thread Matthew Weier O'Phinney
* D A GERM [EMAIL PROTECTED]: I'm throwing a warning on a function I created. I thought a in front of the argument was supposed to make it optional. Is there something else I need to do make that argument optional? As others have noted, the ampersand tells the function to grab a reference to

Re: [PHP] Re: optional argument when creating a function

2005-08-17 Thread D A GERM
Thank you everyone for your help. I tried this and it worked with throwing any errors. CODE function doEmail($username, $link = null) /CODE Matthew Weier O'Phinney wrote: * D A GERM [EMAIL PROTECTED]: I'm throwing a warning on a function I created. I thought a in front of the argument