private static function filterEscape($data)
    {
        return array_filter(array_map(function ($elem) {
            if (is_array($elem)) {
                return self::filterEscape($elem);
            }
            return addslashes($elem); // @codingStandardsIgnoreLine
        }, $data));
    }
private static function filterEscape($data)
    {
        return array_filter(array_map(function ($elem) {
            if (is_array($elem)) {
                return self::filterEscape($elem);
            }
            return addslashes($elem); // @codingStandardsIgnoreLine
        }, $data));
    }
private static function filterEscape ( $ data ) { return array_filter ( array_map ( function ( $ elem ) { if ( is_array ( $ elem ) ) { return self :: filterEscape ( $ elem ) ; } return addslashes ( $ elem ) ; // @codingStandardsIgnoreLine } , $ data ) ) ; }
Filter and escape the complete array.

@param $data

@return array
Filter and escape the complete array .