Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想搜索多个目录/文件夹并计算和回显具有非空子文件夹/子目录的数量。我知道如何通过以下方式计算单个子目录的文件数。但是,在计算具有文件的目录的全局数量时,我找不到任何帮助。
$dir = '../location/' . $nameofadirectory .'/subDir/'; $count = count(glob($dir . "*")); echo $count;
我有一些用于评级系统的 CSS 精灵:http: //i.imgur.com/qeb2b.png
加载拇指时
<