original_string: function _hexToPHPColor($hex)
      {
          $length = strlen($hex);
          $dr = hexdec(substr($hex, $length - 6, 2));
          $dg = hexdec(substr($hex, $length - 4, 2));
          $db = hexdec(substr($hex, $length - 2, 2));
          $color = ($dr << 16) + ($dg << 8) + $db;
          return $color;
      }
code: function _hexToPHPColor($hex)
      {
          $length = strlen($hex);
          $dr = hexdec(substr($hex, $length - 6, 2));
          $dg = hexdec(substr($hex, $length - 4, 2));
          $db = hexdec(substr($hex, $length - 2, 2));
          $color = ($dr << 16) + ($dg << 8) + $db;
          return $color;
      }
code_tokens: function _hexToPHPColor ( $ hex ) { $ length = strlen ( $ hex ) ; $ dr = hexdec ( substr ( $ hex , $ length - 6 , 2 ) ) ; $ dg = hexdec ( substr ( $ hex , $ length - 4 , 2 ) ) ; $ db = hexdec ( substr ( $ hex , $ length - 2 , 2 ) ) ; $ color = ( $ dr << 16 ) + ( $ dg << 8 ) + $ db ; return $ color ; }
docstring: Convert a color defined in hexvalues to the PHP color format
  
  @access private
  @param string $hex color value in hexformat (e.g. '#FF0000')
  @return integer color value in PHP format
docstring_tokens: Convert a color defined in hexvalues to the PHP color format