Find Jobs
Hire Freelancers

using regular expressions and PHP for phone validation function

$10-15 USD

Cancelado
Publicado hace más de 12 años

$10-15 USD

Pagado a la entrega
Hi alexus, I need the following: 1) Valid_fr_phone ($type) function User inputs phone number. It maybe a landline or mobile phone number. It may be written with country code (international format) or without (national format. French phone national number format is Dd dd dd dd dd. First 2 digits are presently: 01 down to 05 for landlines numbers and 06 or 07 for mobile numbers. This is the "national format". French country code is 33. The international format is 33(0)d dd dd dd dd. We should accept it, and also 330d dd dd dd dd and 33-0d dd dd dd dd, and other variations (separators) The tool will validate the phone number and transform it into a string It will accept any separators, just like a date: space, ",", ";", "-", "/", ".";, both for national and international format. It will transform the number into international phone number format :33(0)ddddddddd and will insert a prefix "f" for landlines number or "m" for mobile phone numbers. Finally, get something like m33(0)6dddddddd or f33(0)1dddddddd $type parameter: can be "f" or "m", or "t". Used to validate only one type of phone number, landline or mobile, or all phone numbers (type "t"). 2) .Show_phone(,$phone,$disp, $det) function - $disp="n" (national), "i" (international) o "n": dd dd dd dd dd o "i":33(0)d dd dd dd dd - $det= "s" (short) or "l" (long): long is phone number ." (fixe)" or phone number ." (mobile)" - $phone is a string: phone number coded by the valid_number function ## Deliverables Examples: $tel =show_phone( "f33(0)123456789","n", "l") ; Echo $tel will show: 01 23 45 67 89 (mobile) $tel =show_phone( "f33(0)123456789","i", "l") ; Echo $tel will show: (33)1 23 45 67 89 (fixe) $tel =show_phone( "f33(0)123456789","n", "s") ; Echo $tel will show: 01 23 45 67 89 (mobile) If you can make the $disp and $det optional (default values national, short), that would be great Coder should show example of past work using regex.
ID del proyecto: 2700193

Información sobre el proyecto

5 propuestas
Proyecto remoto
Activo hace 12 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
5 freelancers están ofertando un promedio de $12 USD por este trabajo
Avatar del usuario
See private message.
$12 USD en 1 día
5,0 (12 comentarios)
5,8
5,8
Avatar del usuario
See private message.
$12 USD en 1 día
4,9 (17 comentarios)
4,9
4,9
Avatar del usuario
See private message.
$12 USD en 1 día
4,9 (23 comentarios)
3,2
3,2
Avatar del usuario
See private message.
$12 USD en 1 día
5,0 (1 comentario)
0,0
0,0
Avatar del usuario
See private message.
$10 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de FRANCE
PARIS, France
5,0
53
Forma de pago verificada
Miembro desde oct 27, 2008

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.