Welcome Guest, Not a member yet? Register   Sign In
Helper Count
#5

[eluser]perdel[/eluser]
[quote author="Aken" date="1337816768"]Basic PHP. Easy peasy.

Code:
$i = 10;

foreach ($array as $item)
{
    // Do other stuff...
    echo $i; // 10
    $i--; // $i now equals 9
    // OR
    $i++; // $i now equals 11
}
[/quote]

thank you very much!! I thought to do this i need for ($i = 10)...
Big Grin


Messages In This Thread
Helper Count - by El Forum - 05-23-2012, 02:27 PM
Helper Count - by El Forum - 05-23-2012, 04:01 PM
Helper Count - by El Forum - 05-23-2012, 04:06 PM
Helper Count - by El Forum - 05-23-2012, 04:46 PM
Helper Count - by El Forum - 05-23-2012, 05:46 PM
Helper Count - by El Forum - 05-23-2012, 06:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB