The below is a php function:
bool mkdir ( string $pathname [, int $mode = 0777 [, bool $recursive = false [, resource $context ]]] )
I would like to call the function, specifying the first and the third parameters, leaving the second default. Can I?
No, you cannot. See http://www.php.net/manual/en/functions.arguments.php esp. ex #5 and #6
Specifically:
Note that when using default arguments, any defaults should be on the right side of any non-default arguments; otherwise, things will not work as expected.
Make a wrapper function with only the parameters you want to specify.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With