public static function validateSerialized($data, callable $filter=null) {
        $decoded = @unserialize($data);
        if ( $decoded === false && $data != @serialize(false) ) return false;
        return self::applyFilter($data, $filter);
    }
public static function validateSerialized($data, callable $filter=null) {
        $decoded = @unserialize($data);
        if ( $decoded === false && $data != @serialize(false) ) return false;
        return self::applyFilter($data, $filter);
    }
public static function validateSerialized ( $ data , callable $ filter = null ) { $ decoded = @ unserialize ( $ data ) ; if ( $ decoded === false && $ data != @ serialize ( false ) ) return false ; return self :: applyFilter ( $ data , $ filter ) ; }
Serialized values validator.

@param mixed $data Data to validate
@param callable $filter Custom filter
@return bool
Serialized values validator .