1) I came here to visit a friend of mine.
2) I came to visit a friend of mine here.
Both are correct but the first one is more common. Moreover, you don't need the phrase 'of mine' in either sentence. It's just superfluous.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Both are correct but the first one is more common. Moreover, you don't need the phrase 'of mine' in either sentence. It's just superfluous.