Show if divisible by 3

Dynamic variable iteration – change var on fly

This starts by adding first result to client1 then adds to client2 and client3. The variable name is changing easch time due to count set on $m. The variable name is set using braces ${client.$m}

Variable Increment – Join

This code joins two variables together using { }. Basically : – $var1 = 55; $var1 = {pretext.$var1); this will give you pretext55

Basic For loop

Do something so many times!

For Loop with array[] from database

Foreach

Has to be used with an Array (If there was 4 dates)

Then as many times as there was a result of $date (in this case 4 times)

The out put would be hihihihi