PHP Manual
This manual is provided as a courtesy. It is not an official source. Please check php.net for updated information.
(PHP 4 >= 4.0.6, PHP 5)
Returns the index of the specified color+alpha in the palette of the image.
If the color does not exist in the image's palette, -1 is returned.
Note: This function requires GD 2.0.1 or later.
See also imagecolorclosestalpha().