Login +

Documentation

SLS_String::hex2RGB

Since SillySmart 1.0.4

Description

Convert a hexa decimal color code to its RGB equivalent
static array hex2RGB ( string $hexStr, [ boolean $returnAsString ] , [ string $seperator ] );

Parameters

  • string $hexStr
    hexadecimal color value
  • boolean $returnAsString
    if set true, returns the value separated by the separator character. Otherwise returns associative array
  • string $seperator
    to separate RGB values. Applicable only if second parameter is true

Return

array
or string depending on second parameter. Returns False if invalid hex color value
No exemples.

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.