private static function extractColorAndOptions($colorCode)
    {
        $options = array();
        foreach (self::$options as $name => $bit) {
            if (($colorCode & $bit) === $bit) {
                $options[] = self::$codes[$bit];
                $colorCode = $colorCode & ~$bit;
            }
        }
        if (!isset(self::$codes[$colorCode])) {
            throw new ConsoleException("Cannot parse color code");
        }
        return array(self::$codes[$colorCode], $options);
    }
private static function extractColorAndOptions($colorCode)
    {
        $options = array();
        foreach (self::$options as $name => $bit) {
            if (($colorCode & $bit) === $bit) {
                $options[] = self::$codes[$bit];
                $colorCode = $colorCode & ~$bit;
            }
        }
        if (!isset(self::$codes[$colorCode])) {
            throw new ConsoleException("Cannot parse color code");
        }
        return array(self::$codes[$colorCode], $options);
    }
private static function extractColorAndOptions ( $ colorCode ) { $ options = array ( ) ; foreach ( self :: $ options as $ name => $ bit ) { if ( ( $ colorCode & $ bit ) === $ bit ) { $ options [ ] = self :: $ codes [ $ bit ] ; $ colorCode = $ colorCode & ~ $ bit ; } } if ( ! isset ( self :: $ codes [ $ colorCode ] ) ) { throw new ConsoleException ( "Cannot parse color code" ) ; } return array ( self :: $ codes [ $ colorCode ] , $ options ) ; }
Extracts the options and the color from a color code

@param int $colorCode
@return array
Extracts the options and the color from a color code