Jump to content

how do the loops work


dogbiter

Recommended Posts

so i'm just curious how the while(), do..while, for(), and foreach() loops work differently because when i do a normal mysql query in php the foreach() will return the array but if i do a join or a query involving more then one table then the foreach() loop doesn't work and i have to user a while() loop just curious how they work differently if someone wants to explain it or point me to a book or web site that explains it i will be very appreciative.

Link to comment
https://forums.phpfreaks.com/topic/113030-how-do-the-loops-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.