2012-02-02 5 views

Répondre

3

De http://us.php.net/manual/en/language.operators.comparison.php

$a == $b Equal TRUE if $a is equal to $b after type juggling. 
$a === $b Identical TRUE if $a is equal to $b, and they are of the same type. 
$a != $b Not equal TRUE if $a is not equal to $b after type juggling. 
$a <> $b Not equal TRUE if $a is not equal to $b after type juggling. 
$a !== $b Not identical TRUE if $a is not equal to $b, or they are not of the same type. 
+2

juste pour ajouter un exemple: 0 == faux, mais 0! == faux, l'exemple principal pour son utilisation étant la fonction strpos (http: // php. net/manual/de/function.strpos.php) – roman

+0

J'apprécie cela! –

+0

IMPRESSIONNANT! La raison pour laquelle je pose cette question est en fait avec 'strpos()'! –

Questions connexes