Rotate 2D array 90 degrees?

I am building tile based application which stores it’s objects in 2D array. I would need to rotate it 90 degrees to change angle of looking at it.
Any idea of how to do this?