Basically, I want to be able to get the functionality of C++\'s find_if(), Smalltalk\'s detect: etc.:
find_if()
detect:
// would return the element o
To pull the first one from the array, or return false:
false
current(array_filter($myArray, function($element) { ... }))
More info on current() here.