[mapserver-dev] PHP/MapScript Question...

Alan Boudreault aboudreault at mapgears.com
Tue Feb 1 13:48:53 EST 2011


Yes there is a built-in support for default values for function parameters. As 
Daniel said, we can have optionnal params at the end of the arg list.

Alan

On February 1, 2011 01:33:25 pm Daniel Morissette wrote:
> On 11-02-01 01:25 PM, Lime, Steve D (DNR) wrote:
> > Hi guys: Does PHP/MapScript allow for the definition of default values
> > for function/method parameters? I'm working on the final push for RFC 65
> > and want to add a parameter to the map saveQuery method to choose
> > between a serialization format (params vs. features)...
> 
> I don't remember if there is built-in support for default values, but we
> can have optional args, so we can get the same effect as long as the new
> param is at the end of the arg list.
> 
> Daniel

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com


More information about the mapserver-dev mailing list