예제 #1
0
 /**
  * Converts a string with an arbitrary-base integer into the corresponding integer in a different base and returns
  * it as another string.
  *
  * The string may be prefixed with "0x" for the source base of 16.
  *
  * @param  int $fromBase The source base. Can be a number in the range from 2 to 36.
  * @param  int $toBase The destination base. Can be a number in the range from 2 to 36.
  *
  * @return CUStringObject The string with the converted number.
  */
 public function numberToBase($fromBase, $toBase)
 {
     return CUString::numberToBase($this, $fromBase, $toBase);
 }