Page 1 of 1

Newbie question

Posted: Fri Sep 20, 2002 4:41 am
by Coco
Ok i have an array of numbers...
are there any functions in php that will:
  • sort the array numerically
    Remove all duplicates
cheers

i would look in the manual, but if you dont know what a function is call there is nearly 0 chance of finding it

Posted: Fri Sep 20, 2002 5:08 am
by Takuma

Posted: Fri Sep 20, 2002 5:13 am
by Coco
ta mate
found the array_unique too from there...
thanks again

Re: Newbie question

Posted: Fri Sep 20, 2002 6:00 am
by twigletmac
Coco wrote:i would look in the manual, but if you dont know what a function is call there is nearly 0 chance of finding it
Not necessarily since you knew that it would be an array function you could have started here:
http://www.php.net/manual/en/ref.array.php

Just so's you know for next time - the PHP manual isn't as user-unfriendly as you might think :wink: .

Mac