3 ms·
You could do that before short syntax: foo(array('source' => '/123', 'destination' => '/abc')); Short syntax will make it less repetitive though. You can
by Klinky 15y ago
You could do that before short syntax:
foo(array('source' => '/123', 'destination' => '/abc'));
Short syntax will make it less repetitive though. You can also use something like array_merge to emulate jQuery's $.extend for creating defaults.