To Get The Unique Values In An Array: Array_Unique() Function

<?php
$countries= array('Germany' => 'German', 'France' => 'French', 'Spain' => 'Spanish'); $languages = array_unique($countries);
printf("%s,", var_export($languages, TRUE)); ?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.