vijaykumarkakatkar Posted March 28, 2009 Share Posted March 28, 2009 I have my telephone no masked as : (416)422-2233 need to output as :(416)422-2233 ...the result should have no space,dashes,slases. Result only have[0-9] character. Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted March 30, 2009 Share Posted March 30, 2009 so use str_replace() or preg_replace to strip out any character that isn't numeric, then printf() to output the number formatted with the brackets, dashes, etc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.