s.prema@yahoo.com 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 Quote Link to comment Share on other sites More sharing options...
s.prema@yahoo.com Posted February 8, 2010 Author Share Posted February 8, 2010 GOT Answer $string = "1122337749903"; $value = count_chars($string, 3); echo $value; //12374903 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.