Function to find the greater value
< ? php function findGreater ( $ a , $ b ) { $ x = ( double ) $ a * ( double ) ( log ( ( double ) ( $ b ) ) ) ; $ y = ( double ) $ b * ( double ) ( log ( ( double ) ( $ a ) ) ) ; if ( $ y > $ x ) { echo " a ^ b ▁ is ▁ greater " , " STRNEWLINE " ; } else if ( $ y < $ x ) { echo " b ^ a ▁ is ▁ greater " , " STRNEWLINE " ; } else { echo " Both ▁ are ▁ equal " , " STRNEWLINE " ; } }