final public static function formatMatch ($value='', $regexFormat='') : bool
	{	
		// Match for length '/\A\d{4}\Z/'
		if (!self::hasValue($value))  new ErrorCode(1001);
		if (!self::hasValue($regexFormat))  new ErrorCode(1001);

		return @preg_match($regexFormat, $value);
	}
final public static function formatMatch ($value='', $regexFormat='') : bool
	{	
		// Match for length '/\A\d{4}\Z/'
		if (!self::hasValue($value))  new ErrorCode(1001);
		if (!self::hasValue($regexFormat))  new ErrorCode(1001);

		return @preg_match($regexFormat, $value);
	}
final public static function formatMatch ( $ value = '' , $ regexFormat = '' ) : bool { // Match for length '/\A\d{4}\Z/' if ( ! self :: hasValue ( $ value ) ) new ErrorCode ( 1001 ) ; if ( ! self :: hasValue ( $ regexFormat ) ) new ErrorCode ( 1001 ) ; return @ preg_match ( $ regexFormat , $ value ) ; }
Checks if parameter matches a certain format.
@param mixed $value
@param regex $format
@return bool
Checks if parameter matches a certain format .