public static function convert($no, $fromBase, $toBase) {
        if ($fromBase == $toBase) {
            return $no;
        }

        return base_convert($no, $fromBase, $toBase);
    }
public static function convert($no, $fromBase, $toBase) {
        if ($fromBase == $toBase) {
            return $no;
        }

        return base_convert($no, $fromBase, $toBase);
    }
public static function convert ( $ no , $ fromBase , $ toBase ) { if ( $ fromBase == $ toBase ) { return $ no ; } return base_convert ( $ no , $ fromBase , $ toBase ) ; }
Convert a number from one base to another.

@param int $no
@param int $fromBase
@param int $toBase
@return int
Convert a number from one base to another .