(PHP 4, PHP 5, PHP 7)
Draw a rectangle
bool imagerectangle ( resource $image, int $x1, int $y1, int $x2, int $y2, int $color )
imagerectangle() creates a rectangle starting at the specified coordinates.
Parameters:
image
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
x1
Upper left x coo