php fetch javascript code example
Example 1: fetch in javascript
fetch('http://example.com/movies.json')
.then(response => response.json())
.then(data => console.log(data));
Example 2: php fetch
while ($row = mysqli_fetch_assoc( $result)) {}