Home  >  Article  >  Backend Development  >  php惯用函数 及 方法

php惯用函数 及 方法

WBOY
WBOYOriginal
2016-06-13 11:01:05824browse

php常用函数 及 方法
1.分割字符串方法

$res=explode("_",$ceritficateName);//根据下划线分割字符串$ceritficateName 


2.array_pop() 弹出并返回数组的最后一个单元,并将数组 array 的长度减一

$last = array_pop($res); //获得最后一个元素
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