Hello,
I am trying to figure out how to validate a phone number using ereg().
I basically want it to check whether the entered string is made up of only numbers. Main concern is how do I remove spaces if the user has entered any and how not to make that not upset it if they didn;t enter any numbers?