[RFC] array_search_range

From: Date: Wed, 12 Aug 2026 14:27:21 +0000
Subject: [RFC] array_search_range
Groups: php.internals 
Request: Send a blank email to internals+get-132204@lists.php.net to get a copy of this message
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

« previous php.internals (#132204) next »