get iterative form of data from the php to javascript code example Example: how to use for loops to work with array in javascript for(let i = 0; i < myArray.length; i++){