(PHP 4, PHP 5, PHP 7)
Draw a line
bool imageline ( resource $image, int $x1, int $y1, int $x2, int $y2, int $color )
Draws a line between the two given points.
Parameters:
image
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
x1
x-coordinate for first point.
y1