array_multisort on $GLOBALS array
From: Frostillicus (frosty_at_nilspamos.iinet.net.au)
Date: 05/31/04
- Next message: Philipp Kern: "Re: Mambo CMC vs XOOPS"
- Previous message: knoak: "count array? (newbie)"
- Next in thread: Pedro Graca: "Re: array_multisort on $GLOBALS array"
- Reply: Pedro Graca: "Re: array_multisort on $GLOBALS array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 31 May 2004 23:41:52 +1000
I'm trying to use array_multisort to sort by one of the dimensions of an
array stored in $GLOBALS['urls'] like this:
array_multisort($GLOBALS['urls']['desc'], SORT_STRING, SORT_DESC);
Each "row" in $GLOBALS['urls'] contains a value for 'href', 'desc', and
'info' but when I try to pass one of these "columns" to array_multisort() it
whinges about it not being an array or a sort value :-(
Can PHP not understand arrays stored in $GLOBALS or something?
- Next message: Philipp Kern: "Re: Mambo CMC vs XOOPS"
- Previous message: knoak: "count array? (newbie)"
- Next in thread: Pedro Graca: "Re: array_multisort on $GLOBALS array"
- Reply: Pedro Graca: "Re: array_multisort on $GLOBALS array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|