How about:

$test= preg_replace ($search, $replace, $dokument);

while (list ($key, $val) = each($test)) {
      if ($key == "0" || $key == "3") {
           //do nothing
      } else {
         echo $key = $val;
      }
  }

Let me know if this works.

-Lisi

At 11:24 PM 4/14/02 +0200, #Linux wrote:
>Tanks so far, but if  I want don't want to display the 1st and 4th line.
>
>
>----- Original Message -----
>From: "Lisi" <[EMAIL PROTECTED]>
>To: "#Linux" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>Sent: Sunday, April 14, 2002 10:55 PM
>Subject: Re: [PHP-DB] Extracting the essence!
>
>
> >
> > >Try something like the following to extract the contents of the array by
> > >looping through it:
> >
> > >$test= preg_replace ($search, $replace, $dokument);
> >
> > while (list ($key, $val) = each($test)) {
> >          echo $key = $val;
> > }
> >
> > HTH
> >
> > -Lisi
> >


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to