Gen. partnerAlgotech

PHP function base_convert()

Convert a number between arbitrary bases

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.