Posts by Hudson Gomes • 11 points
1 post
-
1
votes0
answers25
viewsQ: Stop PHP foreach loop after start
How to interrupt a foreach PHP based on a condition coming from the database after starting the loop? $smtm = Connect::getInstance()->query("SELECT * FROM table WHERE num IS NULL"); foreach…