 
			
			
			Logical Operators are just that: logical! It's like speaking english. They are very helpful when you need your If / Else / Elseif statements to be a little more complex. Check out this table, provided by PHP.net:
| Example | Name | Result | 
|---|---|---|
| $a and $b | And | TRUEif both$aand$bareTRUE. | 
| $a or $b | Or | TRUEif either$aor$bisTRUE. | 
| ! $a | Not | TRUEif$ais notTRUE. | 
| $a && $b | And | TRUEif both$aand$bareTRUE. | 
| $a || $b | Or | TRUEif either$aor$bisTRUE. | 
Here is an example of how you would use one of the above logical operators:
$username = "johnnyboy";
$password = "qwerty";
if ($username == 'johnnyboy' && $password == 'qwerty') {
	
	// username and password are correct
	
} else {
	echo "Your username and password combination are incorrect";
}
				
				Feel free to experiment with all of the above logical operators with some PHP If / Else / Elseif statements using the practice.php page provided in this folder.