Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's a counterpart unpacking syntax which will likely also get merged in, meaning you can have:

  function query($query, ...$params) {}
and

  $params = [3];
  query('SELECT * FROM table WHERE a = ?;', ...$params);


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: