PHP utility to extract measurements from human readable form.
$string = "10-20 feet";
$measurement = new ReadableMeasurements( $string );
echo $measurement->get();
Results in ['value' => [10, 20], 'unit' => 'feet']
get
gets the resulting matches.
PHP utility to extract measurements from human readable form.
PHP utility to extract measurements from human readable form.
$string = "10-20 feet";
$measurement = new ReadableMeasurements( $string );
echo $measurement->get();
Results in ['value' => [10, 20], 'unit' => 'feet']
get
gets the resulting matches.PHP utility to extract measurements from human readable form.