How to get WordPress attachment caption, title, alt, and description

this si simple function to get all wordpress attachment text