Provide array_filter_recursive in ArrayUtility
The php-function array_filter() can't iterate over nested arrays. To filter such arrays a recursive functionality would be useful.
This is intended to be used in another feature-issue. Maybe reviewing that function separately makes sense.
Upon trying to come up with an ideal solution, at the security code-sprint in Wiesbaden, it took quite some testing and research. But imho we found an ideal solution, which I'd like to propose for ArrayUtility.
[FEATURE] Add ArrayUtility::filterRecursive() method
Add a new method ArrayUtility::filterRecursive() as an
enhancement to the PHP function array_filter() to filter
Reviewed-by: Stephan Großberndt <firstname.lastname@example.org>
Tested-by: TYPO3com <email@example.com>
Reviewed-by: Mathias Brodala <firstname.lastname@example.org>
Tested-by: Mathias Brodala <email@example.com>
Reviewed-by: Stefan Neufeind <firstname.lastname@example.org>
Reviewed-by: Henning Liebe <email@example.com>
Tested-by: Henning Liebe <firstname.lastname@example.org>
Reviewed-by: Alexander Opitz <email@example.com>
Tested-by: Alexander Opitz <firstname.lastname@example.org>
Reviewed-by: Benjamin Kluge <email@example.com>