not enough info to go on there
is that code part of a class function ? where is $this coming from ?
the concat is wrong i.e. it should be
but if you are saying that there is an object variable called eg
then you may have to do something similar to.
for($i=1; $i<=6; $i++)
but without knowing what $this is is hard to say