I came up with the idea of ​​using a signature like array_filter(), and when a 
callback is passed, "return the first/last element that matches the condition" 
and "return null if there is no match."

The downside to this idea is the loss of simplicity. So I'll leave it up to you 
whether you want to go with this idea or not. I have no intention of forcing 
this.

Best regards.

Saki
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to