Skip to content

Commit c3fe7ab

Browse files
authored
array sync with EN (#1999)
1 parent fb68c61 commit c3fe7ab

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
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 3ba15fd3dfb8196a1762b1a21a14311e0279284b Maintainer: yannick Status: ready -->
3+
<!-- EN-Revision: 651fad6c6677036edd2871bb78199e17586a3acd Maintainer: yannick Status: ready -->
44
<!-- Reviewed: no -->
55
<!-- CREDITS: DavidA. -->
66
<refentry xml:id="function.array-unique" xmlns="http://docbook.org/ns/docbook">
@@ -125,9 +125,11 @@
125125
<programlisting role="php">
126126
<![CDATA[
127127
<?php
128-
$input = array("a" => "green", "red", "b" => "green", "blue", "red");
128+
129+
$input = ["a" => "green", "red", "b" => "green", "blue", "red"];
129130
$result = array_unique($input);
130131
print_r($result);
132+
131133
?>
132134
]]>
133135
</programlisting>
@@ -150,9 +152,11 @@ Array
150152
<programlisting role="php">
151153
<![CDATA[
152154
<?php
153-
$input = array(4, "4", "3", 4, 3, "3");
155+
156+
$input = [4, "4", "3", 4, 3, "3"];
154157
$result = array_unique($input);
155158
var_dump($result);
159+
156160
?>
157161
]]>
158162
</programlisting>

0 commit comments

Comments
 (0)