Hi Guys,
I have a general enquiry about PHP syntax. I'm having trouble creating a VERY simple for loop using PHP, i think the best way to explain this is by an example:
say if i want to create a loop which changes the values of different variables of incrementing names at every loop, how would i do this:
$date1 = sunday
$date2 = monday
$date3 = tuesday
... $date7 = saturday
for ($i=1; $i<8; $i++) {
$date.$i==1;
}
the above code doesnt work, i hope you guys can see what im trying to do here.
trying to amend $date1 == 1, then $date2 == 1... $date7== 1.
What should be the correct code for $date.$i==1?
Thanks,
- Justin