企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ## bin2hex / hex2bin 字符串,16进制相互转换 ``` echo bin2hex('hello word') .PHP_EOL; // a echo hex2bin('68656c6c6f20776f7264') .PHP_EOL; // hello wo echo bin2hex('你好世界') .PHP_EOL; // e4bda0e5a5bde4b896e7958c echo hex2bin('e4bda0e5a5bde4b896e7958c') .PHP_EOL; // 你好世界 ```