Skip to content

Commit 651fad6

Browse files
mmalferovGirgias
authored andcommitted
array-unique.xml Remove trailing whitespace, CS examples by the way
1 parent 5a79bf9 commit 651fad6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

reference/array/functions/array-unique.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<note>
2626
<simpara>
2727
Two elements are considered equal if and only if
28-
<literal>(string) $elem1 === (string) $elem2</literal>, i.e.
28+
<literal>(string) $elem1 === (string) $elem2</literal>, i.e.
2929
when the string representation is the same, the first element will be used.
3030
</simpara>
3131
</note>
@@ -119,9 +119,11 @@
119119
<programlisting role="php">
120120
<![CDATA[
121121
<?php
122-
$input = array("a" => "green", "red", "b" => "green", "blue", "red");
122+
123+
$input = ["a" => "green", "red", "b" => "green", "blue", "red"];
123124
$result = array_unique($input);
124125
print_r($result);
126+
125127
?>
126128
]]>
127129
</programlisting>
@@ -144,9 +146,11 @@ Array
144146
<programlisting role="php">
145147
<![CDATA[
146148
<?php
147-
$input = array(4, "4", "3", 4, 3, "3");
149+
150+
$input = [4, "4", "3", 4, 3, "3"];
148151
$result = array_unique($input);
149152
var_dump($result);
153+
150154
?>
151155
]]>
152156
</programlisting>

0 commit comments

Comments
 (0)