当前位置:网站首页>php截取中文字符串实例
php截取中文字符串实例
2022-08-03 19:51:00 【1002710030】
<?php
$str='你好啊';
echo mb_substr($str,0,2,'utf-8');//截取前面2个字,你好
?>
边栏推荐
- Golang死信队列的使用
- 揭秘5名运维如何轻松管理数亿级流量系统
- 力扣刷题之求两数之和
- 友宏医疗与Actxa签署Pre-M Diabetes TM 战略合作协议
- 力扣刷题之爬楼梯(7/30)
- LeetCode 622. 设计循环队列
- 边缘盒子+时序数据库,美的数字化平台 iBuilding 背后的技术选型
- X86 function call model analysis
- Jingdong cloud released a new generation of distributed database StarDB 5.0
- Unity gets the actual coordinates of the ui on the screen under the canvas
猜你喜欢
FreeRTOS中级篇
虚拟机vmware设置桥接模式上网
LeetCode 622. Designing Circular Queues
Matlab paper illustration drawing template No. 42 - bubble matrix diagram (correlation coefficient matrix diagram)
不知道这4种缓存模式,敢说懂缓存吗?
149. The largest number on a straight line, and check the set
LeetCode 952. 按公因数计算最大组件大小
Internet Download Manager简介及下载安装包,IDM序列号注册问题解决方法
华为设备配置VRRP负载分担
余弦距离介绍
随机推荐
群辉查看硬盘存储占用的方式
盘点在线帮助中心对企业能够起到的作用
Shell编程之循环语句
dpkg强制安装软件
宁德时代2号人物黄世霖辞任副董事长:身价1370亿
涨薪5K必学高并发核心编程,限流原理与实战,分布式计数器限流
LeetCode 622. Designing Circular Queues
线上一次JVM FullGC搞得整晚都没睡,彻底崩溃
Unity gets the actual coordinates of the ui on the screen under the canvas
从腾讯阿里等大厂出来创业搞 Web3、元宇宙的人在搞什么
子树的大小
1161 最大层内元素和——Leetcode天天刷【BFS】(2022.7.31)
CSDN帐号管理规范
力扣刷题之合并两个有序数组
(十六)51单片机——红外遥控
List类的超详细解析!(超2w+字)
pytorch框架实现老照片修复功能详细演示(GPU版)
Statistical machine learning 】 【 linear regression model
CS免杀姿势
Solution for no navigation bar after Word is saved as PDF