Hacker News new | past | comments | ask | show | jobs | submit login

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: