I want to create a function with an optional argument/parameter but have
never read a concrete answer on how to do it.

This is what I am assuming

function test(arg1,arg2,arg3 = null)
{
        arg3 will be optional
}

is this correct?


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

Reply via email to