kevinkhan Posted June 27, 2009 Share Posted June 27, 2009 Hi guys, I have a script that extracts numbers from a .txt file.. but it list the numbers in these formats 087-9850714 (087) 9850714 (087)9850714 087 9850714 0879850714 Is there anyway of changing these numbers and putting them all in this format 0879850714 0879850714 0879850714 0879850714 0879850714 [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/163904-need-a-bit-of-help-with-a-script/ Share on other sites More sharing options...
HPWebSolutions Posted June 27, 2009 Share Posted June 27, 2009 Call $num = preg_replace('/[^0-9]/','',$num); on each row where $num is a single entry. Link to comment https://forums.phpfreaks.com/topic/163904-need-a-bit-of-help-with-a-script/#findComment-864753 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.