how to get the state data of multiple devices and loop on table PHP

Hey I saw that you liked a post in here: rest api: sending a message with an array of deviceids in php using curl
Was that enough to answer the question? Note that our API docs do provide some example PHP code for making requests.