sandy1028 Posted July 23, 2007 Share Posted July 23, 2007 Hi, array_multisort($mobile, SORT_ASC, $text_array); How to convert the string value to integer value . The sort is the order as string value.. 4563423 45435462434 623765457657 4568678643557 But I want the numbers from ascending order of integer value Link to comment https://forums.phpfreaks.com/topic/61331-convert-string-to-integer/ Share on other sites More sharing options...
btherl Posted July 23, 2007 Share Posted July 23, 2007 The SORT_NUMERIC option should do the trick.. http://sg2.php.net/manual/en/function.array-multisort.php Link to comment https://forums.phpfreaks.com/topic/61331-convert-string-to-integer/#findComment-305197 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.