[email protected] Posted February 8, 2010 Share Posted February 8, 2010 How to eliminate the repeating characters in a string... Say that , $str="12135142513"; I need the output only as. 12345 Very urgent. Thanks in advance Link to comment https://forums.phpfreaks.com/topic/191316-elliminating-repeating-characters-in-a-string/ Share on other sites More sharing options...
[email protected] Posted February 8, 2010 Author Share Posted February 8, 2010 GOT Answer $string = "1122337749903"; $value = count_chars($string, 3); echo $value; //12374903 Link to comment https://forums.phpfreaks.com/topic/191316-elliminating-repeating-characters-in-a-string/#findComment-1008690 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.