3 ms·
> 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 exi
by grishka 3y ago
> 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);