Re: [PHP] RTFM code snippet

2002-01-11 Thread Andrey Hristov
If you have file with name "0" , with while ($file = readdir($dir)) { it will be casted to false, but this is regular file. Thus !== is used. Regards, Andrey Hristov - Original Message - From: "mike cullerton" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Friday, Jan

Re: [PHP] RTFM code snippet

2002-01-11 Thread Andrey Hristov
I'm not sure if a resource casted to numeric to be 0 - var_dump() to say :(0) resource of type !==flase assures that it is FALSE, not 0. !== is like != but makes type checking. Frequently used with strpos(). See the memos there. There is also available === operator. It is like == but also m