PEAR logo

HTML_CSS : The Definitive Guide

Name

HTML_CSS::grepStyle — Retrieve styles corresponding to an element filter

Synopsis

    require_once 'HTML/CSS.php';
   
array|PEAR_Error HTML_CSS::grepStyle( $elmPattern,  
  $proPattern);  
string   $elmPattern;
string   $proPattern;

Description

Return array entries of styles that match patterns (Perl compatible)

Parameter

string $elmPattern

Element or class pattern to retrieve

string $proPattern

(optional) Property pattern to retrieve

See

see Regular Expression Functions (Perl-Compatible)

Throws

throws HTML_CSS_ERROR_INVALID_INPUT

Since

since version 1.1.0 (2007-01-01)

Note

This function can not be called statically.

HTML_CSS : The Definitive Guide v 1.5.0 : January 15, 2008