<P> Called up to the Army in 1942 Phillips rose to the rank of Lance - Bombardier in the Royal Artillery . Due to his acquired upper class accent, Phillips was selected for officer training at Catterick and duly commissioned as a Second Lieutenant in the Royal Artillery in 1943 . In his autobiography he would recall that his anti-aircraft battery destroyed numerous German V1 flying bombs launched against the UK during the period . He was transferred to the Durham Light Infantry in 1944 but was later declared unfit for service after being diagnosed with a neurological condition that caused partial paralysis . He was initially sent to a psychiatric hospital in error but was then sent to the correct facility for treatment . </P> <P> Demobbed as a lieutenant in December 1944, Phillips' acting career initially took in "the murkiest rat - infested old playhouses and music halls in the North of England". It was during the 1950s that he became known for playing amusing English stereotypes, including the 1955 TV series Robin Hood starring Richard Greene . His first lead role in a television serial was in the 1952 sitcom My Wife Jacqueline . His seductive voice is his trademark as well as his catchphrases, "I say, Ding Dong" (originally the catchphrase of Phillips' character Jack Bell in Carry On Nurse), "Hello" and "Lumme!", which were partly, if not wholly, based on those of fellow cad actor Terry - Thomas . The two appeared together in the pilot of "Nawks Ahoy!". A show very much of its time all recordings are now lost . He appeared in three of the early Carry On films (Carry On Nurse, Carry On Teacher and Carry On Constable). After Constable he told producer Peter Rogers that he did not wish to do any more Carry Ons, though he did return for Carry On Columbus in 1992 . This made him, with June Whitfield, the longest - serving Carry On cast members . In the 1960s he took over from Dirk Bogarde in several of the' Doctor' film comedies . Between 1959 and 1977 Phillips became familiar on radio with a leading role in The Navy Lark . </P> <P> After his marriage to Angela Scoular in 1982, Phillips decided to move away from playing the kind of lecherous twits with suave chat - up lines which had characterised much of his previous work . Phillips has remained busy in both stage and television productions, along with character roles in films like Empire of the Sun (1987) directed by Steven Spielberg and Lara Croft: Tomb Raider (2001). Phillips also provided the voice for the Sorting Hat in the Harry Potter films appearing in Harry Potter and the Philosopher's Stone (2001) and Harry Potter and the Chamber of Secrets (2002) as well as reprising his role in the final film, Harry Potter and the Deathly Hallows Part 2 (2011). He has also appeared in British television sitcoms including Honey for Tea with Felicity Kendal and appeared in cameo roles in the popular series such as The Bill . </P> <P> In 2006, he appeared in Hanif Kureishi's film Venus alongside Peter O'Toole and was nominated for a BAFTA for Best Supporting Actor in 2007 for his role as the veteran actor, Ian . </P>

Who played the sorting hat in harry potter
find me the text answering this question