Post

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.)

Just learned about it this last year but never remember to reach for it 2x faster?? If that's true I'll reach for it more often, sheesh

0 reposts0 likes