How to make an argument optional...confirmation...

From: Date: Fri, 22 Aug 2003 02:55:37 +0000
Subject: How to make an argument optional...confirmation...
Groups: php.general 
Request: Send a blank email to php-general+get-160379@lists.php.net to get a copy of this message
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?

« previous php.general (#160379) next »