A brace from Kylian Mbappe earned all three points for France, who edged past Denmark 2-1 at Stadium 974.
After a first half that had promise but lacked clinical finishing, the two sides shifted into life after the restart with both teams confident in their ability to win the match.
Mbappe gave his nation the lead just after the hour, linking up with Hernandez during a counter-attack before beating Schmeichel with a close-range shot but Hjulmand’s team were not to be denied – equalising seven minutes later.
Eriksen’s corner found its intended target, with Andersen’s flick-on supplying Christensen with the chance to beat Lloris.
The result would be decided four minutes from time though, with the PSG forward latching onto Griezmann’s cross to turn the ball over the line.
The win guarantees France’s passage to the knockouts, while Denmark must beat Australia on the final day.