Tag Archive: Sort

Mar 27

useful function in php

Sort This function use for sort an array. Element will arrange lowest to highest. Syntax bool Sort($array, sortingtype or flag) Sortingtype : Optional, specify how the compare element value 1. SORT_REGULAR : Default. Compare items normally. 2. SORT_NUMERIC : Compare items numerically 3. SORT_STRING : Compare items as strings 4. SORT_STRING : Compare items as strings 5. SORT_LOCALE_STRING : Compare items …

Continue reading »