lib/PHPRtfLite/DocHead/ColorTable.php
public function getColorIndex($color)
    {
        $color = self::getColorAsFullHexCode($color);
        $index = array_search($color, $this->_colors);
        return $index !== false ? $index + 1 : false;
    }
public function getColorIndex($color)
    {
        $color = self::getColorAsFullHexCode($color);
        $index = array_search($color, $this->_colors);
        return $index !== false ? $index + 1 : false;
    }
public function getColorIndex ( $ color ) { $ color = self :: getColorAsFullHexCode ( $ color ) ; $ index = array_search ( $ color , $ this -> _colors ) ; return $ index !== false ? $ index + 1 : false ; }
gets rtf code of color

@param   string $color color
@return  string
gets rtf code of color