Miaogu 的个人博客 / 0 / 0 / 创建于 4年前 / 更新于 4年前
bin2hex(string $str) :string
把参数 str 转换为十六进制的字符串。转换使用字节方式,高四位字节优先。
str
参数:$str 待转换的字符串
返回值:返回指定字符串十六进制的表示
$str = 'hello world'; $newStr = bin2hex ($str); echo $newStr; // 68656c6c6f20776f726c64
本作品采用《CC 协议》,转载必须注明作者和本文链接
我要举报该,理由是:
推荐文章: