Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
antihero
on July 1, 2012
|
parent
|
context
|
favorite
| on:
Calling PHP functions with named parameters
Why not something like?
function myfunc($kwargs) { extract($kwargs); }
And then just call it with an array. Sure, it's ugly, but that's the price of using PHP.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: