In the Harry Potter universe, Petrificus Totalus (Full Body-Bind Curse) is a standard spell taught at Hogwarts, not something you "learn" in real life.
In games like Hogwarts Legacy or the Half-Blood Prince DS game, you unlock it via story progression or skill trees—not by memorizing words.
Real-world "magic" doesn't exist; the spell is a narrative device for tension and humor.