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

[eluser]Aken[/eluser]
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
}


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