[PHP-DEV] [RFC] array_search_range

[email protected] (سپهر محمودی)
Newsgroups php.internals
Message-ID <CA+Jcf5uYeE+9NU9=Mmkz+zKCpoTibD8K_9tVCVZ1aGD43VMtoQ@mail.gmail.com>
Hi everyone,

I would like to propose a new function for PHP: array_search_range().

The RFC for this proposal can be found here:
https://wiki.php.net/rfc/array_search_range

The main motivation is to provide a memory-efficient way to search within a
specific range of an array, avoiding the overhead of creating intermediate
arrays with array_slice().

I appreciate your feedback and discussion on this proposal.

Best regards,
Sepehr Mahmoudi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.