Jump to content

if a vairable doesn't equal another help


Imad

Recommended Posts

Just keep in mind PHP's type conversion when comparing strings and numbers. For instance:

$a = 3;
$b = '3d';
echo ($a != $b);

will evaluate to false, while:

echo ($a !== $b);

will evaluate to true.

 

For more info, see:

http://us.php.net/operators.comparison

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.