Home > Backend Development > PHP Tutorial > php惯用函数总结

php惯用函数总结

WBOY
Release: 2016-06-13 12:43:07
Original
824 people have browsed it

php常用函数总结

?

1、?glob() 函数,函数返回匹配指定模式的文件名或目录。

? ? ? ?使用方法

foreach (glob('./imgs/*') as $pic) {
	echo '<img  src="'.$pic.'" alt=" php惯用函数总结 " >' . '->' . $mc->getMajorColor($pic) . '<br><br>';
}
Copy after login

?2、explode()、implode(),分割和组品字符串。

?

3、move_uploaded_file() 函数将上传的文件移动到新位置。若成功,则返回 true,否则返回 false。

?

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