aboutsummaryrefslogtreecommitdiff
path: root/public/test3.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/test3.php')
-rw-r--r--public/test3.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/public/test3.php b/public/test3.php
index dcdb979..327e2dd 100644
--- a/public/test3.php
+++ b/public/test3.php
@@ -1,5 +1,17 @@
<?php
+$path = '../w/class/';
+$lengh = strlen($path);
+$array = [];
+foreach (glob($path . '*.php') as $filename) {
+ $array[] = substr(substr($filename, $lengh), 0, -4);
+}
+
+var_dump($array);
+
+
+
+