+ 2

Built in function for easily handling array of arrays

PHP has a built in function for times when you have an array of arrays and need just 1 value from each array. Instead of traversing with a foreach you can use array_column(). See some sample code here: https://code.sololearn.com/wMkY4SJCZugr/?ref=app

9th Mar 2018, 7:20 AM
Gary Kovar
Gary Kovar - avatar
2 Respostas
+ 9
very nice, thanks for sharing, but in future maybe is better idea that you share your knowledge and ideas in lesson factory because Q&A is not for that kind of posts actually
9th Mar 2018, 1:19 PM
Vukan
Vukan - avatar
0
Is that only available on the website? I do not see it in the iPhone app.
9th Mar 2018, 1:59 PM
Gary Kovar
Gary Kovar - avatar