Get the value of an attribute

I have created an attribute in a listing, and now I want to recover that value in a variable, how can I do it?
Thanks for your help

Hi,

Please provide more details and we will try to help you. What exactly do you mean by “recover”? Maybe you are trying to create a custom code? Also, what kind of hook are you using?