PHP function base_convert()

Availability in PHP 4.0

Convert a number between arbitrary bases

Parameters

Parameter Data type Default value Note
$number string not The number to convert
$frombase int not The base number is in
$tobase int not

Return values

string

number converted to base tobase

Other resources

Official documentation of the base-convert function

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.