Php 十进制到十六进制字符串
我有一个utf-32字符的十进制值:Php 十进制到十六进制字符串,php,Php,我有一个utf-32字符的十进制值: $a=21644; 如何使用php将其转换为十六进制的字符串'548c' 以下是我正在使用的代码页面: 就是您在这里需要的: php > echo dechex(21644); 548c 您需要的是: php > echo dechex(21644); 548c 您需要使用dechex: $hex = dechex($decimal); 阅读更多内容您需要使用dechex: $hex = dechex($decimal); 阅读更多信息
$a=21644;
如何使用php将其转换为十六进制的字符串<代码>'548c'
以下是我正在使用的代码页面:
就是您在这里需要的:
php > echo dechex(21644);
548c
您需要的是:
php > echo dechex(21644);
548c
您需要使用
dechex
:
$hex = dechex($decimal);
阅读更多内容您需要使用
dechex
:
$hex = dechex($decimal);
阅读更多信息dechex()
dechex()