Check if ' AB ' is smaller or ' BA ' and return bool value since comparison operator ' < = ' returns true or false
if ( ( int ) ( $ A . $ B ) <= ( int ) ( $ B . $ A ) ) { return true ; } else return false ; }