(PHP 4, PHP 5, PHP 7)
Draw a filled rectangle
bool imagefilledrectangle ( resource $image, int $x1, int $y1, int $x2, int $y2, int $color )
Creates a rectangle filled with color in the given image starting at point 1 and ending at point 2. 0, 0 is the top left corner of the image.
Parameters:
image
An image resource, returned by one of the image creation functions, such as