Sorting mysql array value after string chars swapped from fetched DB data.
Posted
by Shail Patel
on Stack Overflow
See other posts from Stack Overflow
or by Shail Patel
Published on 2010-05-17T11:25:57Z
Indexed on
2010/05/17
11:30 UTC
Read the original article
Hit count: 187
I want to sort one column fetched from mysql DB, and stored in an array. After fetching I am doing below steps.
1- DB Fetching fields array in row format.
->Field1, Field2, Field3, Field4, Field5
2- From that fields array One columns data [Field3], swapping string keywords.
eg. AB013, DB131, RS001
to->013AB, 131DB, 001RS
Now I want to sort above value in new string format
like-> 001RS, 013AB, 131DB
© Stack Overflow or respective owner