Re: Extracting the essence!

From: Date: Mon, 15 Apr 2002 07:33:26 +0000
Subject: Re: Extracting the essence!
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-18506@lists.php.net to get a copy of this message
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" <lists@shemeshdirectory.co.il> To: "#Linux" <linux@bredband.no>; <php-db@lists.php.net> 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


« previous php.db (#18506) next »