php sorted array code example Example: php store sorted array $array = array(); $sorted_array = $array; asort($sorted_array);