Meaning of the word "as it turns out" in English

What does "as it turns out" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

as it turns out

US /æz ɪt tɜrnz aʊt/
UK /æz ɪt tɜrnz aʊt/

Phrase

used to introduce information that is surprising or unexpected, or that was not known before

Example:
As it turns out, he was right all along.
We thought it would be easy, but as it turns out, it's quite complicated.