Closed Thread Icon

Topic awaiting preservation: sort an array [PHP] (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12037" title="Pages that link to Topic awaiting preservation: sort an array [PHP] (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: sort an array [PHP] <span class="small">(Page 1 of 1)</span>\

 
u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 02-06-2002 14:24

I have the following array in $row:

$row[0]=02/01/31#;1013000139#;pleasure night#;Steinhaus Berlin#;
$row[1]=02/02/22#;1013000185#;"MixIt"- house vs. black#;Magnet-Club#;
$row[2]=01/12/27#;1013001176#;Drunken Masters#;H.O.F. 23#;

I want to sort it into this way:
$row[0]=01/12/27#;1013001176#;Drunken Masters#;H.O.F. 23#;
$row[1]=02/01/31#;1013000139#;pleasure night#;Steinhaus Berlin#;
$row[2]=02/02/22#;1013000185#;"MixIt"- house vs. black#;Magnet-Club#;

But it seems to me, that asort($row), arsort($row), sort($row) or rsort($row) will not manage that.

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 02-06-2002 14:48

Ok, i found the problem.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 02-06-2002 15:29

so what was it?

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 02-06-2002 15:38

It has nothing to do with sort(). Something was incorrect in my code before.

« BackwardsOnwards »

Show Forum Drop Down Menu