Bubble sort implementation to sort elements in descending order .
< ? php function swap ( & $ x , & $ y ) { $ x ^= $ y ^= $ x ^= $ y ; } function print1 ( $ a , $ n ) { for ( $ i = 0 ; $ i <= $ n ; $ i ++ ) echo ( $ a [ $ i ] . " ▁ " ) ; echo ( " STRNEWLINE " ) ; }