PHP ลบค่าใน Array ที่ซ้ำกันออกไป

PHP ลบค่าใน Array ที่ซ้ำกันออกไป
remove array duplicates php

<?php
$array = array
(
    [0] => 5
    [1] => 13
    [2] => 14
    [3] => 41
    [4] => 13
    [5] => 14
    [6] => 15
    [7] => 41
    [8] => 44
)
$dp= array_unique($array);
echo '<pre>';
print_r($dp);
echo '</pre>';

//Output
/*Array
(
    [0] => 5
    [1] => 13
    [2] => 14
    [3] => 41
    [6] => 15
    [8] => 44
)*/
?>