blob: 327e2dd61f8d24e383c2936428f144cb6925b1b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
$path = '../w/class/';
$lengh = strlen($path);
$array = [];
foreach (glob($path . '*.php') as $filename) {
$array[] = substr(substr($filename, $lengh), 0, -4);
}
var_dump($array);
?>
|