diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-10-31 15:28:37 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-10-31 15:28:37 +0100 |
commit | 26f88e043ebedcadd337011ce527f6148350f0dc (patch) | |
tree | b41d1c9dd646c35a2cac88ba999b0cdd35726a68 /public/test3.php | |
parent | e17392e46259e6f2e012017987cf7c31c171488f (diff) | |
download | wcms-26f88e043ebedcadd337011ce527f6148350f0dc.tar.gz wcms-26f88e043ebedcadd337011ce527f6148350f0dc.zip |
homemade very root database engine
Diffstat (limited to 'public/test3.php')
-rw-r--r-- | public/test3.php | 12 |
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); + + + + |