async-await-2

async-await-2.php


This is the results from three sql calls via fetch in an async function with await. The three sql statements are returned in an array. As a result the first then needs to do a Promise.all(data) and send it to the second then. You can review the code by clicking on the button above.