阅读(2590)
赞(9)
unicode_encode()
2017-06-22 14:07:00 更新
作用:对字符串进行 unicode 编码。
语法: string unicode_encode(string $str)
参数:
$str原字符串。
返回值:
- 编码后的字符串。
示例:
<?php
echo unicode_encode('你好,世界!'); //将输出 \u4f60\u597d\uff0c\u4e16\u754c\uff01作用:对字符串进行 unicode 编码。
语法: string unicode_encode(string $str)
参数:
$str 原字符串。返回值:
示例:
<?php
echo unicode_encode('你好,世界!'); //将输出 \u4f60\u597d\uff0c\u4e16\u754c\uff01Copyright©2023 字节宝字节宝| |
违法和不良信息举报电话:|举报邮箱:3111859717@qq.com
