<?php function ReformatPhoneNumber($number) { $validChars = array(' ', '-'); echo substr($number, 0, 1) . PHP_EOL . substr(strlen($number) - 1, 1); } echo ReformatPhoneNumber('012-345 69');
You have javascript disabled. You will not be able to edit any code.