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

php惯用函数总结

WBOY
WBOYOriginal
2016-06-13 12:43:07839browse

php常用函数总结

?

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

? ? ? ?使用方法

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

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

?

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

?

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