Non required argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have a simple function that contains an argument that is not required, ie:

function list_formvars($pmatch) {...


However, if I call the function without the argument, I get a warning (I'm having the app show all warnings for development):

"Warning: Missing argument 1 for list_formvars(), called in ..."

Though the function works fine, how would I go about then making argument not required. I've tried using an if statement with an isset() condition, but perhaps I don't have the syntax correct?

Anyway,
TIA for your comments.

Donovan




--
D Brooke

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux