<?php
$org = array('1', '2', '2', '3', '3', '4', '5', '6');

// simple array unique call with sort by string
$new = array_unique($org, SORT_STRING);

// output the sorted array
var_dump($new);
echo "";

// empty sorted array
$new = array();
var_dump($new);
echo "";

// sort with in_array()
for ($i=0; $i < count($org); $i++) {

    if (!in_array($org[$i], $new)) {
        $new[] = $org[$i];
    }
}

// output the sorted array
var_dump($new);