I got the array response from the one API and I passed to the response to the other API. For example: Response from one API is {status:200,data:{name:"Manikyam", selected_products:[1,2,3,4,5]}
I need to iterate the selected_products from the response using foreach or other loop which is suitable of this.
Iterations like:
I tried some ways like using forEach but I haven't any luck.