Skip to content

Commit f8b7e45

Browse files
authored
Fixed indents
1 parent b474a67 commit f8b7e45

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/comparisons-of-references-and-values.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ When objects are compared with the comparison operator `==`, the objects will be
88
When objects are compared with the identity operator `===`, the objects will be considered equal if they both refer to the same reference of an object.
99
```php
1010
<?php
11-
class myClass {
12-
public $foo;
11+
class myClass {
12+
public $foo;
1313
public $bar;
14-
function __construct($foo, $bar) {
15-
$this->foo = $foo;
14+
function __construct($foo, $bar) {
15+
$this->foo = $foo;
1616
$this->bar = $bar;
1717
}
1818
}
19-
19+
2020
$a = new myClass("apples", "oranges");
2121
$b = new myClass("apples", "oranges");
2222
$c = $a;
23-
24-
($a == $b) ? print "a equals b" : print "a does not equal b";
25-
($a === $b) ? print "a and b reference the same object" : print "a and b do not reference the same object";
26-
($a === $c) ? print "a and c reference the same object" : print "a and c do not reference the same object";
23+
24+
($a == $b) ? print "a equals b" : print "a does not equal b";
25+
($a === $b) ? print "a and b reference the same object" : print "a and b do not reference the same object";
26+
($a === $c) ? print "a and c reference the same object" : print "a and c do not reference the same object";
2727
?>
2828
```
2929
Will yield:

0 commit comments

Comments
 (0)