[PHP] SORT_NUMERIC

2003-02-28 Thread Jim Long
Hi, Does anyone know how to make the flag sort_numeric work? Will it work with asort? asort ($numeric_array, SORT_NUMERIC); I've tried this but it looks like it's having problems with the comma in big numbers. I'm not absolutely sure, but it looks like it's ignoring everything after a comma

Re: [PHP] SORT_NUMERIC

2003-02-28 Thread Jason Wong
On Friday 28 February 2003 23:28, Jim Long wrote: Hi, Does anyone know how to make the flag sort_numeric work? Will it work with asort? asort ($numeric_array, SORT_NUMERIC); I've tried this but it looks like it's having problems with the comma in big numbers. What comma in big numbers?

[PHP] PHP SORT_NUMERIC

2003-02-27 Thread Jim Long
Hi, I've got to sort the $numeric_arry This doesn't seem to work: sort ($numeric_array, SORT_NUMERIC); I think its sorting $key asort ($numeric_array, SORT_NUMERIC); sorts as a string THANKS AGAIN IN ADVANCE, Jim Long JanetVal Wrote: Well, as long as you know exactly what you are looking