php 查找并返回某个字符之前的字符串或之后的字符串
来源:原创
时间:2017-05-31
作者:脚本小站
分类:PHP
strstr(string,char,[boolean]) //在string中查找并返回char之后的字符串,boolean等于true 返回之前部分
第三个参数为true返回之前的字符串
找的是char在string中最先出现的字符
strstr(string,char,[boolean]) //在string中查找并返回char之后的字符串,boolean等于true 返回之前部分
第三个参数为true返回之前的字符串
找的是char在string中最先出现的字符