Simple t9 input implementation using PHP