On 14 December 2010 10:50, Richard Quadling wrote:
> On 13 December 2010 19:59, George Langley wrote:
>> Hi all. Can use natsort($array1) to sort a single array of filenames into a
>> "natural "alphanumeric order - 1.php, 2.php, 5.php, 10.php, 20.php, etc.
>> But using array_multisort($array1, $
On 13 December 2010 19:59, George Langley wrote:
> Hi all. Can use natsort($array1) to sort a single array of filenames into a
> "natural "alphanumeric order - 1.php, 2.php, 5.php, 10.php, 20.php, etc.
> But using array_multisort($array1, $array2, $array3) doesn't offer a natsort
> option, so I
if so, can that use the natsort()? I don't think an
asort() can do either.
Note that the original source of this info is a mySQL db call, and it is
initially sorted in the query, but again, there doesn't appear to be a way to
natural sort an SQL query either. So I get file1, file10, fil
On 12/13/2010 11:59 AM, George Langley wrote:
> Hi all. Can use natsort($array1) to sort a single array of filenames into a
> "natural "alphanumeric order - 1.php, 2.php, 5.php, 10.php, 20.php, etc.
> But using array_multisort($array1, $array2, $array3) doesn't offer a natsort
> option, so I end
[0][i]."";
echo $slack[0][hate]."";
echo $slack[0][dodgy]."";
echo $slack[0][problems]."";
result;
1
stuff1
blah1
meh1
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, 29
On Monday 29 September 2003 00:12, john wrote:
> short version;
> array_multisort works on localhost but when i upload it, ceases to work
> (array is left unsorted)
[snip]
Could you post a concise example which illustrates your problem?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Unless your problem is more extensive than what you're explaining here,
there's no reason to do any kind of sort. Simply reorder the list yourself
so that whatever ends up in $title is reordered to the first index of your
$shop list...
$product = array ($id, $title, $price);
$shop = array ($prod
Ok. As far as I can tell from your example - you have a single
multidimensional array. From my reading of array_multisort
it looks like it is supposed to sort multiple arrays that happen
to be the same length, which is a little different.
Conceptually, what I think you have is an array of records
8 matches
Mail list logo