Although array_unique has already been mentioned twice, I feel that the answers do not indicate that you should use the function on a nested array and not the array itself, so here is an example of use
$array = array( 'Organization_id' => array(4,4,4) ); $array['Organization_id'] = array_unique( $array['Organization_id'] ); print_r($array);
who will do what you want.
source share