I can't figure out a solution for this so I'm asking here if someone can help me figure this out!
This is how I make loops now when I need a increasing number somewhere in the code. So I tell before how many times i want the loop to run, so in this example 1000 times.
$itemsqueue = 1000;
for ($qu = 1 ; $qu <= $itemsqueue; $qu++){
}
But sometimes I don't know how many lines the "csv" database is, it might be 10,000 lines or 5 lines. So then I would like to have something that makes the loop stop if something in the the actual loop is empty or not set.
Of course the example code below don't work, but this is kind of what I'm thinking I need.
if (empty($queue[$qu][1]) ){
for ($qu = 1 ; $qu++){
}
}
Hopefully I made some sense.