Устранение повторяющихся значений с помощью PHP

Как я могу удалить дубликат в массиве с помощью PHP, массив выглядит как ниже

[1] => Array ( [name] => Dean [s_id] => 1 [surname] => [id_nr] => 84934568321 [student_nr] => 0 [createdate] => 0000-00-00 [enddate] => 0000-00-00 [count_absent] => 3 ) [2] => Array ( [name] => Dean [s_id] => 1 [surname] => [id_nr] => 84934568321 [student_nr] => 0 [createdate] => 0000-00-00 [enddate] => 0000-00-00 [count_absent] => 3 ) [3] => Array ( [name] => Dean [s_id] => 1 [surname] => [id_nr] => 84934568321 [student_nr] => 0 [createdate] => 0000-00-00 [enddate] => 0000-00-00 [count_absent] => 3 ) [4] => Array ( [name] => Dean [s_id] => 1 [surname] => [id_nr] => 84934568321 [student_nr] => 0 [createdate] => 0000-00-00 [enddate] => 0000-00-00 [count_absent] => 3 ) 

использовать array_unique($array) в PHP

вы также можете перебирать массив и сравнивать вручную

array_unique

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

 $input = array("a" => "green", "red", "b" => "green", "blue", "red"); $result = array_unique($input); print_r($result);