sorry.earlier i mistyped some values.
I am facing one project in my project .
this is my code:
a=array(0=>10,1=>10,2=>40,3=>30,4=>30,5=>10);
b=array();
b=array_unique($a);
print_r($b);
o/p getting from above code is b[0]=10,b[2]=40,b[3]=30,b[5]=10;
but i want the o/p be b[0]=10,b[1]=40,b[2]=30,b[3]=10;
i searched php.net .i am not able to fine any solution.i am breaking
my head for last 5 hours.i am waiting reply from any one
---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.