Is it possible to skip parameters that have default values in a function call?

function-call, named-parameters, optional-parameters, php

Solution

Found this, which is probably still correct:

http://www.webmasterworld.com/php/3758313.htm

Short answer: no.

Long answer: yes, in various kludgey ways that are outlined in the above.

Problem

I have this: ``` function foo($a='apple', $b='brown', $c='Capulet') { // do something } ``` Is something like this possible: ``` foo('aardvark', <use the default, please>, 'Montague'); ```

Original source

Related problems