public static function ToChar( $value, $provider = null )
	{
		if ( $value instanceof \DateTime )
		{
			$value = Convert::ToString( $value, $provider );
			if ( is_null( $value ) ) return null;
		}

		if ( is_string( $value ) && strlen( $value ) )
		{
			return $value[0];
		}
		else if ( is_numeric( $value ) )
		{
			$ord = $value & 255;
			return chr( $ord );
		}

		return null;
	}
public static function ToChar( $value, $provider = null )
	{
		if ( $value instanceof \DateTime )
		{
			$value = Convert::ToString( $value, $provider );
			if ( is_null( $value ) ) return null;
		}

		if ( is_string( $value ) && strlen( $value ) )
		{
			return $value[0];
		}
		else if ( is_numeric( $value ) )
		{
			$ord = $value & 255;
			return chr( $ord );
		}

		return null;
	}
public static function ToChar ( $ value , $ provider = null ) { if ( $ value instanceof \ DateTime ) { $ value = Convert :: ToString ( $ value , $ provider ) ; if ( is_null ( $ value ) ) return null ; } if ( is_string ( $ value ) && strlen ( $ value ) ) { return $ value [ 0 ] ; } else if ( is_numeric ( $ value ) ) { $ ord = $ value & 255 ; return chr ( $ ord ) ; } return null ; }
Converts the value of this instance to an equivalent Unicode character using
the specified culture-specific formatting information.

@param object $value The value to convert
@param IFormatProvider $provider An interface implementation that supplies culture-specific formatting information.
@return char A Unicode character equivalent to the value of this instance.
Converts the value of this instance to an equivalent Unicode character using the specified culture - specific formatting information .