当前位置:网站首页>php截取中文字符串实例
php截取中文字符串实例
2022-08-03 19:51:00 【1002710030】
<?php
$str='你好啊';
echo mb_substr($str,0,2,'utf-8');//截取前面2个字,你好
?>
边栏推荐
猜你喜欢
Anaconda 虚拟环境迁移
线上一次JVM FullGC搞得整晚都没睡,彻底崩溃
安装anaconda并创建虚拟环境
Detailed demonstration pytorch framework implementations old photo repair (GPU)
Anaconda virtual environment migration
面试突击:什么是粘包和半包?怎么解决?
LeetCode 622. Designing Circular Queues
虚拟机vmware设置nat模式上网
Introduction to Cosine Distance
LeetCode 622. 设计循环队列
随机推荐
Unity gets the actual coordinates of the ui on the screen under the canvas
LeetCode 622. 设计循环队列
高性能计算软件与开源生态| ChinaOSC
CentOS 7 安装mysql
Introduction to Cosine Distance
按需视觉识别:愿景和初步方案
【STM32】标准库-自定义BootLoader
List类的超详细解析!(超2w+字)
Line the last time the JVM FullGC make didn't sleep all night, collapse
安装anaconda并创建虚拟环境
relocation R_X86_64_PC32 against,/usr/bin/ld: final link failed: Bad value
Node version switching tool NVM and npm source manager nrm
余弦距离介绍
力扣刷题之分数加减运算(每日一题7/27)
Anaconda virtual environment migration
pg_memory_barrier_impl in Postgresql and C's volatile
MySQL master-slave, 6 minutes you master!
Matlab paper illustration drawing template No. 42 - bubble matrix diagram (correlation coefficient matrix diagram)
epoll + 线程池 + 前后置服务器分离
Solution for no navigation bar after Word is saved as PDF