<?php echo preg_replace('/[ ]/', '-', '11777777 77777777');
You have javascript disabled. You will not be able to edit any code.