How old and what size does a child have to be to no longer need a car seat or booster seat?

Have you seen those Disney commercials? They advertise that it's 48 inches (or 49, I can't remember) of height. Until they reach that height they need a car seat or booster seat as appropriate. I believe this must be the law since they advertise it as such, but I could be wrong.