I want to store values like A1,A8
, B1,B8
, C1,C8
.. and till H1,H8
in an array.
$char = 'A';
$window=array();
for($i=0;$i<8;$i++)
{
echo $char."1";
echo $char++."8";
}
This for loop prints the data A1,A8 TO H1,H8.
I want to store these values in array window
.
How can I do this?