TIL about `array_column` in PHP 🤩 And it can work on objects, too, so here's simple way to get all the values from a backed enum… (It's also about 2x faster than `array_map` in my testing.)
3 reposts19 likes
TIL about `array_column` in PHP 🤩 And it can work on objects, too, so here's simple way to get all the values from a backed enum… (It's also about 2x faster than `array_map` in my testing.)
3 reposts19 likes