1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-10-24 03:16:07 +02:00

More proofreading

This commit is contained in:
Andrew Davis
2018-12-26 19:10:58 -06:00
parent dc296aef34
commit 8970e4a0ce
3 changed files with 9 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
// A boolean is a value that is always 0 or 1, yes or no, on or off.
// In PHP, a boolean is represented by the words true and false.
// While programming, you will often want to know if something is true or false.
// While programming, you will often want to know if something is positive or negative.
$a = true;
$b = false;
@@ -35,7 +35,13 @@ $one >= $two;
// by using three equal signs.
// This returns true.
1 == 1;
1 == '1';
1 == true;
1 == 1.0;
1 === 1;
// This returns false.
1 === '1';
1 === true;
1 === 1.0;