class IntegerTransform

Class IntegerTransform.

Methods

static  int
toBase( int $integer, int $base, int $toBase, null|int $precision = null, bool $baseIsMaxInteger = false)

Convert an integer from one base to another with optional prevision.

Details

at line line 33
final static int toBase( int $integer, int $base, int $toBase, null|int $precision = null, bool $baseIsMaxInteger = false)

Convert an integer from one base to another with optional prevision.

Parameters

int $integer
int $base
int $toBase
null|int $precision
bool $baseIsMaxInteger

Return Value

int

Exceptions

InvalidArgumentException