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

Obviously this won't matter in 99.999% of cases. All these benchmarks were with 10,000,000 iterations 😂

0 reposts2 likes