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 <email@example.com>
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Mathias Brodala <email@example.com>
Tested-by: Mathias Brodala <firstname.lastname@example.org>
Reviewed-by: Stefan Neufeind <email@example.com>
Reviewed-by: Henning Liebe <firstname.lastname@example.org>
Tested-by: Henning Liebe <email@example.com>
Reviewed-by: Alexander Opitz <firstname.lastname@example.org>
Tested-by: Alexander Opitz <email@example.com>
Reviewed-by: Benjamin Kluge <firstname.lastname@example.org>