How to find out how many similar digit.
Posted: Sun Sep 13, 2009 5:39 am
Hello,
i need to find out how many similar digit that given.
Example given digit: 5666 (must echo : 3 similar digit)
Example given digit: 8866 (must echo : 2 pair of similar digit)
Example given digit: 2336 (must echo : 1 pair of similar digit)
Example given digit: 3576 (must echo : 0 pair of similar digit)
what function i can use to get the echo?
i need to find out how many similar digit that given.
Example given digit: 5666 (must echo : 3 similar digit)
Example given digit: 8866 (must echo : 2 pair of similar digit)
Example given digit: 2336 (must echo : 1 pair of similar digit)
Example given digit: 3576 (must echo : 0 pair of similar digit)
what function i can use to get the echo?