Creating A Slightly Unusual Array

I am currently using a simple array with a grid layout that outputs from Wordpress, which allows me to specify the three columns of the grid. Now, I am wanting to add something hard-coded into the third column of the first row. Which essentially means that my array would need to go ‘first,second’ for the first row (then I will add my hard-coded item in the third column) and then ‘first,second,third’ infinitely after that.

Is there any way that this is possible to implement practically, so that the array just goes ‘first’ and ‘second’ and then switches to the ‘first’,'second,‘third’ array?

[code]$style_classes = array(‘first’,‘second’,‘third’);
$styles_count = count($style_classes);
$style_index = 0;

">[/code]

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.