\cge_units

A simple class for dealing with metric to imperial conversions

Summary

Methods
Properties
Constants
is_length_metric()
is_weight_metric()
No public properties found
INCHES_TO_CM
CM_TO_INCHES
LBS_TO_KG
KG_TO_LBS
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

INCHES_TO_CM

INCHES_TO_CM

CM_TO_INCHES

CM_TO_INCHES

LBS_TO_KG

LBS_TO_KG

KG_TO_LBS

KG_TO_LBS

Methods

is_length_metric()

is_length_metric(string $str) : bool

Test if the string specified indicates a metric length value (accepts cm)

Parameters

string $str

Returns

bool

is_weight_metric()

is_weight_metric(string $str) : bool

Test if the string specified indicates a metric mass value (accepts kg or kgs)

Parameters

string $str

Returns

bool