[PHP] Sort question..

2012-04-25 Thread Karl-Arne Gjersøyen
Hello again. I have a photo album that show all images in a specified directory. but I like to sort them by filename as one possibillity and random sort the photos as another feature. I don't know how to do this.. Here is my soruce-code: !DOCTYPE html html lang=no head

Re: [PHP] Sort question..

2012-04-25 Thread Matijn Woudt
On Wed, Apr 25, 2012 at 3:16 PM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again. I have a photo album that show all images in a specified directory. but I like to sort them by filename as one possibillity and random sort the photos as another feature. I don't know how to do this..

[PHP] Sort Question

2001-09-21 Thread Jeff Oien
Could someone tell me how to sort this? Each $variable1 is a 3,4 or 5 letter string that I would like sorted alphabetically. I assumed sort would do it but apparently it isn't the right type of array. Thanks. $variable1 = split(\n, $variable); Jeff Oien -- PHP General Mailing List

[PHP] Sort Question (Again)

2001-09-21 Thread Jeff Oien
This didn't get answered before. I'm trying to sort an array but it won't work. $list = file('list_main.txt'); $list = sort($list); If I print $list it gives me 1 and print $list[0] is nothing. The list_main.txt looks something like this: ABC DEFG HIJ etc. Jeff Oien -- PHP General Mailing List

Re: [PHP] Sort Question

2001-05-02 Thread Richard Lynch
I am doing a dir list of an ftp and using sort to sort the dir list alphabetically. What I am using now sorts it alphabetically but it sorts the capital letters then the lower case so a capital Z would come before a lower case a The Code I am using is: sort($complete_list); return

[PHP] Sort Question

2001-04-30 Thread Brandon Orther
Hello, I am doing a dir list of an ftp and using sort to sort the dir list alphabetically. What I am using now sorts it alphabetically but it sorts the capital letters then the lower case so a capital Z would come before a lower case a The Code I am using is: sort($complete_list); return