function telc($tel){ $t = ltrim($tel, '+'); $t = ltrim($t, '9'); return trim($t); } $tel = '+905554443322'; echo telc($tel); //05554443322