Re: [PHP] Non required argument

2012-01-07 Thread Donovan Brooke
Simon J Welsh wrote: [snip] function list_formvars($pmatch=null) {... http://php.net/manual/en/functions.arguments.php#functions.arguments.default Thanks!.. missed that doc somehow. Donovan -- D Brooke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Non required argument

2012-01-06 Thread Donovan Brooke
function list_formvars($pmatch="value") {... } thanks to Tolga. Donovan -- D Brooke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Non required argument

2012-01-06 Thread Simon J Welsh
On 7/01/2012, at 2:13 PM, Donovan Brooke wrote: > 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 warning