Ejemplo n.º 1
0
function parse_css_properties_property($string, &$code)
{
    $identifier_regexp = CSS::get_identifier_regexp();
    if (!preg_match(sprintf('/^\\s*(%s)(.*)/si', $identifier_regexp), $string, $matches)) {
        $code = null;
        return '';
    }
    $name = strtolower(trim($matches[1]));
    $rest = $matches[2];
    $code = CSS::word2code($name);
    return $rest;
}