Jump to content

[SOLVED] quick question


gevo12321

Recommended Posts

you can use != this will just compare the two variables

 

!== will do an exact comparison, comparing the variable and variable type

 

 

so that means if it compares a string to a interger, such as this:

 

if(1 !== "1")
echo 'here 2';

 

it will echo out "here 2" because an integer does not equal a string even thought they are both 1.

 

if you don't have the triple comparison:

 

if(1 != "1")
echo 'here 2';

 

that will not echo out "here 2" because 1 does equal 1.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.