$areasexperiencia = $areasexperiencia; function unique_key($array,$keyname){ $new_array = array(); foreach($array as $key=>$value){ if(!isset($new_array[$value[$keyname]])){ $new_array[$value[$keyname]] = $value; } } $new_array = array_values($new_array); return $new_array; } $unique_arr = unique_key($areasexperiencia,'nombre');
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter