Jump to content

i++ help


Lucky2710

Recommended Posts

Is there a better alternative way of doing this?


for($i=0; $i< 12; $i++) {
myFunction($a[$i],$b[$i]);
}

 

The goal is to run this function 12 times and using different numbers each time (from variables a & b [Which both variables are arrays])

 

:DBut is there a better way to make it run 12 times? :confused:

Link to comment
https://forums.phpfreaks.com/topic/209852-i-help/
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.