johnstyle/pquery

There is no license information available for the latest version (v0.2.2) of this package.

v0.2.2 2015-03-22 13:43 UTC

README

PHP DOM selector jQuery like

Example

$html = '<div>
         <span class="test gogo wawa">test <sup>10</sup><sup><strong>11</strong></sup><sup>12</sup></span>
         <span class="test demo toto">demo <sup class="oo"><strong>15</strong></sup></span>
         </div>';

$pQuery = new pQuery($html);
$pQuery->find('span[class*=gogo] sup:last');
echo $pQuery->text();