[PHP] Now a Question for all you ARRAY Junkies

2002-07-10 Thread vins

I have an array
$Lang = array('English','German','French','Zulu');
I want it in alphabetical order

do i reset the arrray first or usort it first 



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




Re: [PHP] Now a Question for all you ARRAY Junkies

2002-07-10 Thread Martin Clifford

Since it's not an associative array, you can just use sort($Lang); and that should 
work just fine.

Martin

 vins [EMAIL PROTECTED] 07/10/02 08:36AM 
I have an array
$Lang = array('English','German','French','Zulu');
I want it in alphabetical order

do i reset the arrray first or usort it first 



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



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




Re: [PHP] Now a Question for all you ARRAY Junkies

2002-07-10 Thread vins

oh ok...
thanx


Martin Clifford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Since it's not an associative array, you can just use sort($Lang); and that
should work just fine.

Martin

 vins [EMAIL PROTECTED] 07/10/02 08:36AM 
I have an array
$Lang = array('English','German','French','Zulu');
I want it in alphabetical order

do i reset the arrray first or usort it first 



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





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




Re: [PHP] Now a Question for all you ARRAY Junkies

2002-07-10 Thread Danny Shepherd

just sort($Lang);

A question: wouldn't it have been quicker to knock out a couple of test
files to see which is the right way?

HTH

Danny.

- Original Message -
From: vins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 1:36 PM
Subject: [PHP] Now a Question for all you ARRAY Junkies


 I have an array
 $Lang = array('English','German','French','Zulu');
 I want it in alphabetical order

 do i reset the arrray first or usort it first 



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



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




Re: [PHP] Now a Question for all you ARRAY Junkies

2002-07-10 Thread Neil Freeman

Have a look at sort()

vins wrote:
 **
 This Message Was Virus Checked With : SAVI 3.59 May 2002 
 Last Updated 8th July 2002
 **
 
 I have an array
 $Lang = array('English','German','French','Zulu');
 I want it in alphabetical order
 
 do i reset the arrray first or usort it first 
 
 
 


-- 

Work: [EMAIL PROTECTED]
Home: [EMAIL PROTECTED]

Web:  www.curvedvision.com



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




Re: [PHP] Now a Question for all you ARRAY Junkies

2002-07-10 Thread vins

i ONLY ask when i can't get summing to work...
i saw when someone reported the sort() function that i had sord()
My bad...

But thanx anyways


Danny Shepherd [EMAIL PROTECTED] wrote in message
081601c2280f$1c552dc0$0200a8c0@DANNYS">news:081601c2280f$1c552dc0$0200a8c0@DANNYS...
 just sort($Lang);

 A question: wouldn't it have been quicker to knock out a couple of test
 files to see which is the right way?

 HTH

 Danny.

 - Original Message -
 From: vins [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, July 10, 2002 1:36 PM
 Subject: [PHP] Now a Question for all you ARRAY Junkies


  I have an array
  $Lang = array('English','German','French','Zulu');
  I want it in alphabetical order
 
  do i reset the arrray first or usort it first 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 




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