I need to write a code to generate 18*9 grid in php, but it has some conditions Conditions are as follows-