I'm running a function that fires multiple loops (code below). Is there a way to run all of the loops simultaneously, then run the second function with the data created in the loops?
<?php
function simultaneousLoops() {
for ($i = 1; $i < 100; $i++) { //create data };
for ($i = 100; $i < 200; $i++) { //create data };
for ($i = 200; $i < 300; $i++) { //create data };
};
function runAfterLoopsIsDone() {
//do something with loop data
};