Skip to content
PHP News
Search
Discussion PHP 8.7

array_partition()

From the RFC

Splitting an array into the elements that satisfy a condition and the elements that do not is a common operation. PHP has no built-in function for it, so code today does one of the following:
Read the full RFC on wiki.php.net →