Re: What does || mean ?

From: Date: Thu, 17 Apr 2003 08:47:06 +0000
Subject: Re: What does || mean ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-144246@lists.php.net to get a copy of this message
Problem solved. I changed the syntax a bit if (!is_file($dirname . '/' . $file)) do something.... This works perfectly. Thanks for the assistance.. Chris On Thu, 2003-04-17 at 10:22, Tim Nagel wrote: > Chris, > > It would be OR. > > && == and. > > i have no idea what the not operator is, though it might be != but im rusty > ;\ > > -Tim > merkworx. > > ----- Original Message ----- > From: "Chris Blake" <cblake@pbpc.co.za> > To: "Php-General" <php-general@lists.php.net> > Sent: Thursday, April 17, 2003 6:03 PM > Subject: [PHP] What does || mean ? > > > > Greetings learned PHP(eople); > > > > What does the use of "||" in the following instance mean ? > > ------------------------------------ > > if($file=='.'||$file=='..') > > echo $file; > > ------------------------------------ > > > > Is it : if the file is equal to "." AND/OR/NOT equal to ".." > > > > Thanks > > > > > > -- > > Chris Blake > > Office : (011) 782-0840 > > Cell : 083 985 0379 > > A man without a woman is like a statue without pigeons. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Chris Blake Office : (011) 782-0840 Cell : 083 985 0379 A man without a woman is like a statue without pigeons.

« previous php.general (#144246) next »