src/Validation.php
public static function sanitizeArray(&$arr)
    {
        foreach ($arr as $k => $v) {
            if (is_string($v)) {
                $arr[$k] = self::sanitizeInput($v);
            }
        }
    }
public static function sanitizeArray(&$arr)
    {
        foreach ($arr as $k => $v) {
            if (is_string($v)) {
                $arr[$k] = self::sanitizeInput($v);
            }
        }
    }
public static function sanitizeArray ( & $ arr ) { foreach ( $ arr as $ k => $ v ) { if ( is_string ( $ v ) ) { $ arr [ $ k ] = self :: sanitizeInput ( $ v ) ; } } }
Sanitizes all strings of an array

@param mixed[] &$arr Only strings are sanitized
Sanitizes all strings of an array