Name
base_convert
Synopsis
string base_convert(stringnumber
, intfrom
, intto
)
Converts number
from one base to another.
The base the number is currently in is
from
, and the base to convert to is
to
. The bases to convert from and to must
be between 2 and 36. Digits in a base higher than 10 are represented
with the letters a
(10) through
z
(35). Up to a 32-bit number, or 2,147,483,647
decimal, can be converted.
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.