Hi Patrascu!
On Fri, 08 Feb 2002, Patrascu Eugeniu wrote:

> > > ...
> > Pai atunci faci un ugly hack. Parsuiesti html-urile generate.
> > Adica $html = file('stats.html') || die ('eh'); foreach($html as $line) {
> > if (preg_match(<regexp-here>,$line)) do stuff;
> > }
> 
> aha ... da sa presupunem ca imi ies de 4 ori mai multe match-uri de cat am 
> eu nevoie. cum fac sa sortez doar primele n matches ?
pai mai adaugi un counter si te opresti.
$match = 0;
foreach() {
if (preg_match()) {
        $match++;
        }
if ($match > $tx)
        break;
}

-- teodor
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui