- array_map: documentation ( source)
- array_reduce: documentation ( source)
- array_filter: documentation ( source)
<?php
try {
array_map(function () {throw new \Exception;}, [1, 2, 3]);
} catch (\Exception $e) {
}
try {
array_filter([1, 2, 3], function () {throw new \Exception;});
} catch (\Exception $e) {
}
try {
array_reduce([1, 2, 3], function () {throw new \Exception;});
} catch (\Exception $e) {
}