---
> > From: Brad S. Jackson [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 17, 2001 5:42 PM
> > To: Asendorf, John
> > Subject: Re: [PHP-WIN] eregi in an IF statement
> >
> >
> >
> >
> > Why do you have two )) at the end of the eregi calls?
age-
> From: Brad S. Jackson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 17, 2001 5:42 PM
> To: Asendorf, John
> Subject: Re: [PHP-WIN] eregi in an IF statement
>
>
>
>
> Why do you have two )) at the end of the eregi calls?
>
>
> "Asen
I'm attempting to fix a little flaw that I have.
I have a legacy database which has a mix of 10 and 7 digit phone numbers in
it.
I first designed the function format_phone with this (under the assumption
of 10 digit phone numbers):
function format_phone ( $phone ) {
$phone = eregi_replace