PHP | imagepolygon() Function
The imagepolygon() function is an inbuilt function in PHP which is used to draw a polygon. This function returns TRUE on success and returns FALSE otherwise.Syntax: bool imagepolygon( $image, $points, $num_points, $color ) Parameters: This function accepts four parameters as mentioned above and desc