Re: [PHP-DB] Excluding values of one array from another (sort of)

2001-05-03 Thread Gyozo Papp
Hi Howard, you 'd love the in_array() function (>= PHP4). So you should add an extra condition to your if statement: (see below in code) > [...] > reset ($alphalist); > reset ($exemptlist); > > while (list ($val) = each ($alphalist)) { > // pay attention! if ($currltr <> $val && !in

[PHP-DB] Excluding values of one array from another (sort of)

2001-05-03 Thread Howard Picken
I have the following code "A", "B"=>"B", "C"=>"C", "D"=>"D", "E"=>"E", "F"=>"F", "G"=>"G", "H"=>"H", "I"=>"I", "J"=>"J", "K"=>"K", "L"=>"L", "M"=>"M", "N"=>"N", "O"=>"O", "P"=>"P", "Q"=>"Q", "R"=>"R", "S"=>"S", "T"=>"T", "U"=>"U", "V"=>"V", "W"=>"W", "X"=>"X", "Y"=>"Y", "Z"=>"Z"); $exemptlist =