PHP | imagefilledrectangle() Function
The imagefilledrectangle() function is an inbuilt function in PHP which is used to create a filled rectangle. This function creates a rectangle filled with a given color in the image. The top left corner of the image is (0, 0). Syntax: bool imagefilledrectangle( $image, $x1, $y1, $x2, $y2, $color )