public static function addCssStyle($style, &$htmlOptions)
    {
        if (is_array($style)) {
            $style = implode('; ', $style);
        }
        $style = rtrim($style, ';');
        $htmlOptions['style'] = isset($htmlOptions['style'])
            ? rtrim($htmlOptions['style'], ';') . '; ' . $style
            : $style;
    }
public static function addCssStyle($style, &$htmlOptions)
    {
        if (is_array($style)) {
            $style = implode('; ', $style);
        }
        $style = rtrim($style, ';');
        $htmlOptions['style'] = isset($htmlOptions['style'])
            ? rtrim($htmlOptions['style'], ';') . '; ' . $style
            : $style;
    }
public static function addCssStyle ( $ style , & $ htmlOptions ) { if ( is_array ( $ style ) ) { $ style = implode ( '; ' , $ style ) ; } $ style = rtrim ( $ style , ';' ) ; $ htmlOptions [ 'style' ] = isset ( $ htmlOptions [ 'style' ] ) ? rtrim ( $ htmlOptions [ 'style' ] , ';' ) . '; ' . $ style : $ style ; }
Appends a CSS style string to the given options.
@param string $style the CSS style string.
@param array $htmlOptions the options.
@return array the options.
Appends a CSS style string to the given options .