Class Units
- ICanBoogie\CLDR\Units uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\LocalePropertyTrait
Methods summary
public
format_combination( string|number $number, ICanBoogie\CLDR\Units\Unit|string $number_unit, ICanBoogie\CLDR\Units\Unit|string $per_unit, string $length = self::DEFAULT_LENGTH )
: string
Format a combination of units is X per Y, such as miles per hour or liters per second.
public
format_sequence( array $units_and_numbers, string $length = self::DEFAULT_LENGTH )
: string
Units may be used in composed sequences, such as 5° 30′ for 5 degrees 30 minutes, or 3 ft 2 in.For that purpose, the appropriate width of the unit listPattern can be used to compose the units in a sequence.