Newbie question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Coco
Forum Contributor
Posts: 339
Joined: Sat Sep 07, 2002 5:28 am
Location: Leeds, UK
Contact:

Newbie question

Post 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
Coco
Forum Contributor
Posts: 339
Joined: Sat Sep 07, 2002 5:28 am
Location: Leeds, UK
Contact:

Post by Coco »

ta mate
found the array_unique too from there...
thanks again
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Re: Newbie question

Post 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
Post Reply