glob文件夹下定名不含下划线的所有文件

WBOY
Release: 2016-06-13 12:19:35
Original
1441 people have browsed it

glob文件夹下命名不含下划线的所有文件

本帖最后由 lazygc520 于 2015-05-13 13:39:55 编辑 glob文件夹下命名不含下划线的所有文件,请问怎么写正则?
------解决思路----------------------
你循环的时候直接用 strpos 判断是否有下划线不就行了
好像 glob 不能用复杂的正则
------解决思路----------------------
preg_grep('/[^_]/', glob($path))
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