I’ve trying to learn php on my own for workplace. I found a little puzzle I wanted to try but no one at work will help me. The ans to the puzzle looks like this. I have figured out how to get this but not in even rows or columns. I’m coming from the mainframe side to PC and I did this using an array. One co-worker said I was making it too hard and I could do this with if stmts, a loop and a function. I can find basics for these but not anything a little more advanced. Could some one point me in the right direction? I really want to learn this language.
^OMM$^^OM^
^^$^OO$^$M
^^$$O^$OMM
O$^$MO$OM^
M$$OOM$OMM
OOOO^O$^^M
$^O$OM^M^^
OOO^MMOOOO
OOO$MM^$OM
MOMOM$M^$^