Last active
August 29, 2015 14:01
-
-
Save jonataa/3a1d406f1fab377a345c to your computer and use it in GitHub Desktop.
Operadores Lógicos no PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$x = true; | |
$y = false; | |
$a = (50 == '50'); // true | |
$b = (50 === '50'); // false (tipo e valor) | |
$c = (50 != '50'); // false | |
$d = (50 !== '50'); // true | |
$e = 50 >= 20; // true | |
$f = 50 <= 10; // false | |
/** Referência: http://www.php.net/manual/pt_BR/language.operators.comparison.php **/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment