Re: Sort $_FILE['userfile']['name'] by ascending abc order...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Scott Fletcher wrote:
Um, let's see, what would be the way to go in sorting the dual array

--snip--
 $_FILES['userfile']['name']
$_FILES['userfile']['type']
$_FILES['userfile']['size']
$_FILES['userfile']['tmp_name']
$_FILES['userfile']['error']
--snip--

where $_FILES['userfile']['name'] would be in ascending abc order while all
other like $_FILES['userfile']['type'], $_FILES['userfile']['size'], etc...
would be correctly be side-by-side with the $_FILE['userfile']['name'] in
that order?

$file = $_FILE['userfile'];

$file = array_multisort($file['name'], SORT_ASC );

Is that right??

THanks,
 Scott
try it, the you won'y have to ask ;)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux