Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Klinky
on March 2, 2012
|
parent
|
context
|
favorite
| on:
PHP 5.4.0 released
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: