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

> Assigning an array to a temporary variable is a thing of the past. You can now use array destructuring to directly assign variables from an array.

It has existed approximately forever, in this form:

    list($username, $domain) = explode("@", $email);


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: