Sabberworm/PHP-CSS-Parser
8.1.0
A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS
|
Returns all rules matching the given rule name
(null|string|Rule) | $mRule pattern to search for. If null, returns all rules. if the pattern ends with a dash, all rules starting with the pattern are returned as well as one matching the pattern with the dash excluded. passing a Rule behaves like calling getRules($mRule->getRule()). >getRules('font-') //returns an array of all rules either beginning with font- or matching font. |