Guardiola’s current deal was set to expire at the end of the season.
“I think there is more calm among the fans as it’s another problem solved for the club,” Zlatan told Spanish daily Marca.
“I never thought that Guardiola would leave. I’m very happy for him because I have learned a lot and I’m happy with the confidence he has given me. Barca could not lose a coach like him,” he added.