How-to articles, tricks, and solutions about EARLY-RETURN
Most efficient way to search for object in an array by a specific property's value
In PHP, you can use the built-in function array_filter() to filter the array by a specific property's value.