Image rotation with PHP
This article describes how you can rotate images in PHP. We deal with two examples, firstly rotating by 45 degrees and then by 90, going in to some depth to ensure you understand how the code is working. You might find this useful if you are, for example, building an online photo gallery and you want to rotate your pictures within PHP rather than having to rotate them on your computer. This is a powerful feature to have.