How can I crop an image using php? I can use imagecopy() but the manual is very confusing. I have 4 coordinates, x1 y1 and x2 y2.

Someone explain to me how to use imagecopy() and where to put the variables because it just doesn't make sense to me. Save me from my insanity.