Jump to content

How to short hand this


FreakusBzzz

Recommended Posts

How do I re write my code so it's 



   

 $itemAnnual0 = $values[0] * $periods[0];
    $itemAnnual1 = $values[1] * $periods[1];
    $itemAnnual2 = $values[2] * $periods[2];
...

$itemAnnual79 = $values[79] * $periods[79];

 

 

And for my previous post, I solved it.
 

Link to comment
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.