Home >Backend Development >PHP Tutorial > 字符串截取有关问题请问

字符串截取有关问题请问

WBOY
WBOYOriginal
2016-06-13 12:32:48919browse

字符串截取问题请教
$str="销售";
$str="销售在在大";
$str="销夺基本原则";
$str="左枯在";

echo substr($str,1);

为什么显示是乱码?
在网上搜了一些解决方法 http://www.111cn.net/phper/php-cy/35494.htm 都不行,还是显示乱码。大神帮下我,这个问题应该如何解决 ,我的gbk编码

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn