<?php //£0.00230 -> £0.0023 and £1.50000 -> £1.50 $str = "£0.00230"; $str2 = "£1.50000"; echo number_format($str,2); echo number_format($str2,2);
You have javascript disabled. You will not be able to edit any code.