PHP 8.3.21 Released!

Voting

: min(five, seven)?
(Example: nine)

The Note You're Voting On

CertaiN
11 years ago
The most memory-efficient array_map_recursive().

<?php
function array_map_recursive(callable $func, array $arr) {
array_walk_recursive($arr, function(&$v) use ($func) {
$v = $func($v);
});
return
$arr;
}
?>

<< Back to user notes page

To Top