Forum Discussion
j_angelevski
5 years agoContributor III
That won’t be a problem here, because I’m using destructuring assignment ( the three dots ) before the $group
array ...$group
, this will always work for every $group array regardless of the array size, you don’t have to get each index from the $group array, just use ...$group
, this will destructure the array and will be the same as writing $group[0]... $group[n]
multiple times.
- khanh_tran5 years agoNew Contributor III
Woah. That’s great. I didn’t know that. You’re my hero. hahaha. Here is my result. I worked.
Related Content
- 10 months ago
- 4 months ago
- 4 months ago