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
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
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 =
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
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
rt($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 y
6 matches
Mail list logo