×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

PHP example - How to remove the duplicate values from a PHP array?


PHP - How to remove the duplicate values from a PHP array?

<?php

$arr=array("netart","media","netart");

$newArray=array_unique($arr);

foreach($newArray as $strItem)

{
   echo $strItem."<br>";
}

?>

Category: PHP

 
<< Go back