Now arr1 [ ] is smaller Sort the first array and print its elements ( these two steps can be swapped as order in output is not important )
sort ( $ arr1 ) ; for ( $ i = 0 ; $ i < $ m ; $ i ++ ) echo $ arr1 [ $ i ] . " ▁ " ;