View difference between Paste ID: UMPSPRDk and DTwuQiJZ
SHOW: | | - or go back to the newest paste.
1
<?php
2
    $dir = "./projTest";
3
    $projList = scandir($dir, SCANDIR_SORT_NONE);
4
    
5
    //Remove . and ..
6
    unset($projList[0]);
7
    unset($projList[1]);
8
    
9
    $jsonArr = join("\",\"", $projList);
10
    
11
    echo "[\"" . $jsonArr . "\"]";
12
?>