Is there a known problem with the array_unique function in some versions of
PHP? Only, my server gives a different output to my ISP's server. I
presume my server is giving the correct results?...
Output on my server:
Homer Simpson
Bart Simpson
Output on my ISP's server:
Homer Simpson
$myArray[0]["first"]="Homer";
$myArray[0]["surname"]="Simpson";
$myArray[1]["first"]="Bart";
$myArray[1]["surname"]="Simpson";
$myArray=array_unique($myArray);
foreach ($myArray as $value)
{
foreach ($value as $key=>$final_value)
{
if ($key == "first") {$first=$final_value;}
if ($key == "surname") {$surname=$final_value;}
}
echo $first." ".$surname."<BR>";
}