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?
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?
Comment