to know sb / sth extremely well
know sb / sth backwards
She must know the play backwards by now.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition