<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> HTML_CSS::grepStyle </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch08s06.html" title= "Searching for selectors and/or properties" /> <link rel="prev" href="ch08s06.html" title= "Searching for selectors and/or properties" /> <link rel="next" href="ch09.html" title= "Chapter 9. Error Handler" /> <style type="text/css"> /*<![CDATA[*/ body { background-color: white; color: black; } :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } table.c1 {padding-bottom: 1em} /*]]>*/ </style> </head> <body> <table class="htmlcssHeader"> <tr> <td> <img src="img/pearsmall.gif" align="left" alt="PEAR logo" /> <h1> HTML_CSS : The Definitive Guide </h1> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> <code class="function">HTML_CSS::grepStyle</code> </th> </tr> <tr> <td width="20%" align="left"> <a accesskey="p" href="ch08s06.html">Prev</a> </td> <th width="60%" align="center"> Searching for selectors and/or properties </th> <td width="20%" align="right"> <a accesskey="n" href="ch09.html">Next</a> </td> </tr> </table> </div><br /> <br /> </td> </tr> </table> <div class="refentry" lang="en" xml:lang="en"> <a name="package.html.html-css.html-css.grepstyle" id= "package.html.html-css.html-css.grepstyle"></a> <div class="titlepage"></div> <div class="refnamediv"> <h2> Name </h2> <p> <code class="function">HTML_CSS::grepStyle</code> - Return array entries of styles that match patterns (Perl compatible) </p> </div> <div class="refsynopsisdiv"> <h2> Synopsis </h2> <div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once 'HTML/CSS.php'; </pre> <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="c1"> <tr> <td> <code class="funcdef">array|PEAR_Error <b class= "fsfunc">HTML_CSS::grepStyle</b>(</code> </td> <td> <var class="pdparam">$elmPattern</var>, </td> <td> </td> </tr> <tr> <td> </td> <td> <var class="pdparam">$proPattern</var><code>)</code>; </td> <td> </td> </tr> </table> <table border="0" summary="Function argument synopsis" cellspacing= "0" cellpadding="0"> <tr> <td> string </td> <td> <var class="pdparam">$elmPattern</var>; </td> </tr> <tr> <td> string </td> <td> <var class="pdparam">$proPattern</var>; </td> </tr> </table> </div> </div> <div class="refsect1" lang="en" xml:lang="en"> <a name="package.html.html-css.html-css.grepStyle.desc" id= "package.html.html-css.html-css.grepStyle.desc"></a> <h2> Description </h2> <p> This package is not documented yet. </p> </div> <div class="refsect1" lang="en" xml:lang="en"> <a name="package.html.html-css.html-css.grepStyle.param" id= "package.html.html-css.html-css.grepStyle.param"></a> <h2> Parameter </h2> <div class="variablelist"> <dl> <dt> <span class="term"><span class="type">string</span> <em class= "parameter"><code>$elmPattern</code></em></span> </dt> <dd> <p> Element or class pattern to retrieve </p> </dd> </dl> </div> <div class="variablelist"> <dl> <dt> <span class="term"><span class="type">string</span> <em class= "parameter"><code>$proPattern</code></em></span> </dt> <dd> <p> (optional) Property pattern to retrieve </p> </dd> </dl> </div> </div> <div class="refsect1" lang="en" xml:lang="en"> <a name="package.html.html-css.html-css.grepStyle.see" id= "package.html.html-css.html-css.grepStyle.see"></a> <h2> See </h2> <p> <span class="emphasis"><em>see</em></span> <a class="external" href= "http://www.php.net/manual/en/ref.pcre.php" title= "http://www.php.net/manual/en/ref.pcre.php">Regular Expression Functions (Perl-Compatible)</a> </p> </div> <div class="refsect1" lang="en" xml:lang="en"> <a name="package.html.html-css.html-css.grepStyle.throws" id= "package.html.html-css.html-css.grepStyle.throws"></a> <h2> Throws </h2> <p> <span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en" xml:lang="en"> <a name="package.html.html-css.html-css.grepStyle.note" id= "package.html.html-css.html-css.grepStyle.note"></a> <h2> Note </h2> <p> <span class="emphasis"><em>since</em></span> 1.1.0 </p> <p> This function can not be called statically. </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left"> HTML_CSS : The Definitive Guide </td> <td align="right"> v 1.1.3 : February 18, 2007 </td> </tr> </table> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> <a accesskey="p" href="ch08s06.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch08s06.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="ch09.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> Searching for selectors and/or properties </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> Chapter 9. Error Handler </td> </tr> </table> </div> </body> </html>