How to save message from mqtt to String in openhab

Hi i have a script in php that publish a message on a topic and i want to save that message in an openhab string.
Is it possible?

Yes.