If already cleaned up, then could $phonenbr = substr($phonenbr,0,10);
Wags ;) -----Original Message----- From: rory o'connor [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 10:03 To: [EMAIL PROTECTED] Subject: only accept 10 characters Thanks for everyone's help so far! This is an enjoyable list to read everyday. OK, can someone tell me how to take a variable that *may* be over 10 characters, and blow away anything after the 10th caracter? I am operating on phone numbers and the first thing I am doing is blowing away any non-numeric characters, now I need to blow away anything after 10th digit (in case they tried to enter extension or some other accidental numbers). thanks, rory -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]