Jump to content

For Loop


unemployment

Recommended Posts

If you are certain the two arrays have the same number of records and you're simply trying to get the corresponding information from both of them at once, you can try something like this:

 

for ($x = 0; $x<count($conversations); $x++) {
$conversation = $conversations[$x];
$message = $messages[$x];
}

Link to comment
https://forums.phpfreaks.com/topic/227430-for-loop/#findComment-1173117
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.