Php Imagecolorsforindex
# PHP imagecolorsforindex - Get the Color of a Given Index
[PHP Image Processing](#)
imagecolorsforindex β Get the color of a given index.
### Syntax
array imagecolorsforindex ( resource $image , int $index )
This function returns an associative array with keys red, green, blue, and alpha, containing the corresponding values for the specified color index.
### Example
The output of the above example is similar to:
Array( => 195 => 223 => 165 => 64)
### Related Articles
Gets the color index of a pixel.
Gets the index of the specified color.
[PHP Image Processing](#)
YouTip