<?php $ptn = "/^+44/"; // Regex $str = "+447738351383"; //Your input, perhaps $_POST['textbox'] or whatever $rpltxt = "0"; // Replacement string echo preg_replace($ptn, $rpltxt, $str); ?>
You have javascript disabled. You will not be able to edit any code.