Re: What does || mean ?
| From: | Alexandru Coseru | Date: | Thu, 17 Apr 2003 08:07:06 +0000 |
| Subject: | Re: What does || mean ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144241@lists.php.net to get a copy of this message | ||
it's an OR .
ie: meaning if file == '.' OR $file==".." then....
Alex
----- Original Message -----
From: "Chris Blake" <cblake@pbpc.co.za>
To: "Php-General" <php-general@lists.php.net>
Sent: Thursday, April 17, 2003 11:03 AM
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
>
>