php惯用函数 及 方法

WBOY
Release: 2016-06-13 13:03:53
Original
839 people have browsed it

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

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


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

$last = array_pop($res); //获得最后一个元素
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template