İşte benim Codeigniter fonksiyonu bulunuyor:
function edit_phone($phone)
{
            if (preg_match('/^\(?[0-9]{3}\)?[-. ]?[0-9]{3}[-. ]?[0-9]{4}$/', $phone))
            {
	            return preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "$1-$2-$3", $phone); 
            }
            else
            {
	           $this->CI->validation->set_message('phone', "This must be a 10-digit USA phone number.");
                    return FALSE;       
            }
}
Bu / tamam girişini kontrol eder, ama db onu yeniden biçimlendirmek değildir doğrular.
Doğrulama harika! Ama neden bu standart bir telefon numarası dönen değil!
 
			