Annotation into array

Is there a tool to convert annotation into array?

I think doctrine/annotations is the de facto library to use. Some documentation for using it can be found [URL=“http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/annotations.html”]here.