<?php var_dump(preg_replace('#(\d{3})(\d{3})(\d{4})#', '$1-$2-$3', '0123456789'));
You have javascript disabled. You will not be able to edit any code.