Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dir = "./projTest";
- $projList = scandir($dir, SCANDIR_SORT_NONE);
- //Remove . and ..
- unset($projList[0]);
- unset($projList[1]);
- $jsonArr = join("\",\"", $projList);
- echo "[\"" . $jsonArr . "\"]";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement