Jason Wong <[EMAIL PROTECTED]> wrote: > On Thursday 17 July 2003 12:18, Beauford.2005 wrote: > > > > So using the example above what would I use where the question marks are > > if I wanted to display everything but this line - <Option > > Value="3">Alfredsson. I have tried a variety of ways to do this: > > If you're going to be using file() then: > > if($list[$i] != "<Option> Value=\"3\">Alfredsson\n"; > > Note the \n, substitute for whatever CR/LF characters are present in your > file because file() leaves them intact.
I would recomend using if(trim($list[$i]) != "<Option> Value=\"3\">Alfredsson") it will handle the any problems with DOS or UNIX text files. Curt. -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php