Mailinglisten-Archive |
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C0EB95.A581DE20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Hallo,
hab mal wieder ein Problem mit meiner Sortierfunktion,
die Funktioniert jetzt zwar, sortiert aber nur nach einem Kriterium,
ich habe mal die Funktion, die ich benutze angefügt:
function cmp1($a, $b)
{if ($a == $b) return 0;
return ($a > $b) ? -1 : 1;
}
usort(cmp1,$viewarr)
$viewarr ist ein Array, dessen erster Wert $viewarr[$i][0] eine Zahl ist,
nach der sortiert wird.
$viewarr[3] ist ein Datum, wie schaffe ich es, dass der Computer beides
macht.
Beispiel: $viewarr[1][0] = $viewarr[2][0],
also meinetwegen:
$viewarr[][0] $viewarr[][3]
[$i] 3 1.6.2001
[$i+1] 3 12.5.2001
die sortierung soll so erfolgen, dass [i+1] vorne steht, da dass Datum
früher ist.
ich brauche dringend hilfe, dass programm ist schon längst überfällig.
mfg,
till
------=_NextPart_000_0000_01C0EB95.A581DE20
Content-Type: text/x-vcard;
name="Till Schrader.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="Till Schrader.vcf"
BEGIN:VCARD
VERSION:2.1
N:Schrader;Till
FN:Till Schrader
ORG:Tillsoft
NOTE:www.tillsoft.com www.cabaza.net www.musicalfactory.org =
www.deckblatt.de.vu
TEL;WORK;VOICE:+49 (33056) 77736
TEL;HOME;VOICE:+49 (33056) 77736
TEL;CELL;VOICE:+49 (170) 464 0816
TEL;WORK;FAX:+49 (33056) 95054
TEL;HOME;FAX:+49 (33056) 95054
ADR;HOME:;;Feldahornstra=DFe =
4;Sch=F6nflie=DF;Brandenburg;16567;Deutschland
LABEL;HOME;ENCODING=3DQUOTED-PRINTABLE:Feldahornstra=3DDFe =
4=3D0D=3D0ASch=3DF6nflie=3DDF, Brandenburg 16567=3D0D=3D0ADeutschland
X-WAB-GENDER:2
URL:http://www.cabaza.net
URL:http://www.tillsoft.com
BDAY:19830104
EMAIL;PREF;INTERNET:tischra_(at)_technologist.com
EMAIL;INTERNET:webmaster_(at)_tillsoft.com
REV:20010520T103640Z
END:VCARD
------=_NextPart_000_0000_01C0EB95.A581DE20--
php::bar PHP Wiki - Listenarchive