'When he married her, he neglected to mention that he had had five wives before her.' (Describes an action in the past that took place before another action in the past.)
'I have had many strange dreams before, but this latest one is the strangest of all.' (Used to talk about experiences in the past from the perspective of the present)
'She has had four manuscripts accepted for publication.'
They are examples of the past and present perfect tenses.
I hope this is helpful,
Student or Learner