![]() |
if extension exists?
Need a little help writing an if statement to check if a certain file with the following extension is present.
PHP Code:
|
<a href="http://us4.php.net/manual/en/function.readdir.php" target="_blank">http://us4.php.net/manual/en/function.readdir.php</a> ?
|
what does !== mean ?
|
Quote:
|
It means that if the variables are not cast as the same type they will eval as not equal.
|
Quote:
== compares string representations; != is the inverse === compares the exact values depending on the type; !== is the inverse For example: PHP Code:
|
Thanks filburt. Readdir was exactly what I was looking for.
|
can i just ask what's the difference between != and !==?
nevermind it appears to be the same as == and === :-S |
so wait...
== is used for numerics and === is used for strings. woops^.^ |
Quote:
In filburt's example PHP Code:
123 is identical to "123" // is false, the quotations indicate the 123 as a string. I could be wrong though. I'm still learning. |
|
Simple put == means it holds the same value, === is also checking on the type.
|
nice points, thanks guys
|
All times are GMT. The time now is 07:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|