摆脱重复的数组

Array is like this:

Array
(
    [0] => 2011/10/05
)
Array
(
    [0] => 2011/10/05
)

How can I get rid of the duplicate array?

php has a function

array_unique

http://php.net/manual/en/function.array-unique.php

EDIT

  Option 1
      <?php
           $array1 = array("2011/10/05"); 
           $array2 = array("2011/10/05"); 
           $merged = $array1;

           foreach($array2 as $v) array_push($merged,$v);
           $unique = array_unique($merged); 
      ?>

You could use array_merge, but the problem with array_merge is that it joins the same keys together which you probably don't want. The above code will add elements from array2 to array1 and then do array_unique (adding elements of array2 to array1 can also be done differently).

First merge and then unique

$a = array('2011/10/05');
$b = array('2011/10/05');

$c = array_merge($a,$b);

$d = array_unique($c);