In the 1999 remake, everything that happens after the king's accident near the end is a Dying Dream.
They probably wanted to keep the ending true to life, but didn't want to upset the kids, so the king's death was reworked into a Happily Ever After ending.http://tvtropes.org/pmwiki/pmwiki.php/WMG/TheKingAndI
FollowingWMG / The King and I
Go To