doudai8083 2018-04-23 10:50
浏览 64
已采纳

PHP substr波斯语字符串以问号结尾

In PHP when I want to substr the Persian string 'حروف فارسی برای امتحان', and it appends the question mark at the end of string.

This is my code:

$a = 'حروف فارسی برای امتحان'; echo substr($a,0,10);

And the problem is حروف �

Anyone has any suggestion or solution for this regards? much appreciated.

  • 写回答

2条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 一个python问题
      • ¥15 您好,请问您的那个pcap转成pcd文件的matlab代码我下载了运行没问题,也生成了点云图,但是无法存储pcd文件,请问怎么保存导出pcd文件呀
      • ¥260 已有标注好的图像数据集,如何构建深度卷积网络训练分类
      • ¥20 matlab图像错误
      • ¥30 如何写通过uni.uploadFile上传图片到ASP后端接收的代码
      • ¥15 selenium模糊定位
      • ¥15 硬件断点的问题,真的被整无语了
      • ¥30 想入门网络编程求建议
      • ¥15 在Vs图形库编程中引入的tools.h文件为什么不能被解析,SEL检查已经关闭(语言-c++)
      • ¥15 mybatis的映射文件提示