Hi,Dear Frnd...........I Hope u r all fine.
I am using php array_unique function.Here is the problem in this function.
This is the code.
<?php
$frnd1 = array(
0=> 'arfan',
1=> 'haider',
2=> array(
0=> 'azeem',
1=> 'jeme',
),
3=> array(
0=> 'haider',
1=> 'one'
)
);
// please do not change the above code.
// You can only change below code.
print_r($frnd1);
echo '<hr />';
print_r(array_unique($frnd1));
?>
This work fine,But when I am used array_unique then it does not work.
When I am used array_unique.It ignore the [3]=>Array.
As you can see in my array,Here is two time name "haider".
I want to do that in this array all same names are convert into
one unique name.
In this array I want to ignore the "haider" name bcs it is
two time.How can I do that.
Remmber :: This example is very simple.Bcs u can
understand it easily.Suppose if it is dynamically changed array
then what i did do to make it unique.