Yes …whatever order you will give to foreach it will iterate in same orders. And in your case array will be sorted in the output file.
Yes …whatever order you will give to foreach it will iterate in same orders. And in your case array will be sorted in the output file.