<?php $valor = "3cm"; echo number_format(str_replace("cm", "", $valor), 2, '.', '');
You have javascript disabled. You will not be able to edit any code.