[PHP] Add all previous numbers in a for loop
#4

The output you get is correct, it does the thing you described... Your "desired" output is the value of $i until 3 and from then on it's 3 ^ ($i - 2).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)