static public function explodeStyles($styles)
    {
        $a = [];

        $s = explode(';', $styles);

        foreach ($s as $c) {
            if (empty($c)) continue;
            list($p, $v) = explode(':', $c);
            $a[$p] = $v;
        }

        return $a;
    }
static public function explodeStyles($styles)
    {
        $a = [];

        $s = explode(';', $styles);

        foreach ($s as $c) {
            if (empty($c)) continue;
            list($p, $v) = explode(':', $c);
            $a[$p] = $v;
        }

        return $a;
    }
static public function explodeStyles ( $ styles ) { $ a = [ ] ; $ s = explode ( ';' , $ styles ) ; foreach ( $ s as $ c ) { if ( empty ( $ c ) ) continue ; list ( $ p , $ v ) = explode ( ':' , $ c ) ; $ a [ $ p ] = $ v ; } return $ a ; }
Explodes the style attribute.

@param string $styles

@return array
Explodes the style attribute .