Re: [PHP-WIN] eregi in an IF statement....

2001-04-18 Thread Yasuo Ohgaki
--- > > 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?

RE: [PHP-WIN] eregi in an IF statement....

2001-04-18 Thread Asendorf, John
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

[PHP-WIN] eregi in an IF statement....

2001-04-17 Thread Asendorf, John
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