hexdec():hexadecimal equivalent of decimal number
Hexadecimal is positional numeral system with base of 16. The chars it used are from 0 to 9 and from A to F.
Example : hexadecimal to decimal
Checking Hexadecimal inputsBefore using hexdec() to convert hexadecimal to decimal system, we can check hexadecimal input string for a valid hexadecimal number or not by using ctype_xdigit.php function.Here is Demo of checking and converting Hexadecimal input to decimal base number. DEMOSubscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
![]() | ||||