回答編集履歴
2
訂正
test
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
|
5
5
|
```PHP
|
6
6
|
|
7
|
-
$pic_count = count( preg_grep("/-thum\.jpg$/",glob("*.jpg"),PREG_GREP_INVERT) );
|
7
|
+
$pic_count = count( preg_grep("/-thum\.jpg$/",glob($dir."*.jpg"),PREG_GREP_INVERT) );
|
8
8
|
|
9
9
|
```
|
1
微修正
test
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
|
5
5
|
```PHP
|
6
6
|
|
7
|
-
$pic_count = count( preg_grep("/-thum\.jpg/",glob("*.jpg"),PREG_GREP_INVERT) );
|
7
|
+
$pic_count = count( preg_grep("/-thum\.jpg$/",glob("*.jpg"),PREG_GREP_INVERT) );
|
8
8
|
|
9
9
|
```
|