<?php $string = 423.13; echo preg_replace_callback("/^(\d)([^\.]+)/", function($m){ return $m[1] . str_repeat(0, strlen($m[2])); }, $string);
You have javascript disabled. You will not be able to edit any code.