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. Link to comment https://forums.phpfreaks.com/topic/151487-need-help-to-strp-some-characters-from-string/ 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 Link to comment https://forums.phpfreaks.com/topic/151487-need-help-to-strp-some-characters-from-string/#findComment-796673 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.