i need a PHP code to find longest contiguous sequence of characters in the string. : i need a PHP code to find longest contiguous sequence of characters in the string. So if 'b' is coming together for maximum number of times your program should echo 'b' and count

Example
String: "aaabababbbbbaaaaabbbbbbbbaa"
Output must be: 'b' 8